epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2006 The Android Open Source Project |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 8 | #include "SkDashPathEffect.h" |
egdaniel | a22ea18 | 2014-06-11 06:51:51 -0700 | [diff] [blame] | 9 | |
| 10 | #include "SkDashPathPriv.h" |
commit-bot@chromium.org | 8b0e8ac | 2014-01-30 18:58:24 +0000 | [diff] [blame] | 11 | #include "SkReadBuffer.h" |
| 12 | #include "SkWriteBuffer.h" |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 13 | |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 14 | SkDashPathEffect::SkDashPathEffect(const SkScalar intervals[], int count, |
| 15 | SkScalar phase) { |
| 16 | SkASSERT(intervals); |
| 17 | SkASSERT(count > 1 && SkAlign2(count) == count); |
| 18 | |
| 19 | fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * count); |
| 20 | fCount = count; |
| 21 | for (int i = 0; i < count; i++) { |
| 22 | SkASSERT(intervals[i] >= 0); |
| 23 | fIntervals[i] = intervals[i]; |
| 24 | } |
| 25 | |
egdaniel | a22ea18 | 2014-06-11 06:51:51 -0700 | [diff] [blame] | 26 | // set the internal data members |
| 27 | SkDashPath::CalcDashParameters(phase, fIntervals, fCount, &fInitialDashLength, |
| 28 | &fInitialDashIndex, &fIntervalLength, &fPhase); |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 29 | } |
| 30 | |
mike@reedtribe.org | 3334c3a | 2011-04-20 11:39:28 +0000 | [diff] [blame] | 31 | SkDashPathEffect::~SkDashPathEffect() { |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 32 | sk_free(fIntervals); |
| 33 | } |
| 34 | |
mike@reedtribe.org | 3334c3a | 2011-04-20 11:39:28 +0000 | [diff] [blame] | 35 | bool SkDashPathEffect::filterPath(SkPath* dst, const SkPath& src, |
reed@google.com | 4bbdeac | 2013-01-24 21:03:11 +0000 | [diff] [blame] | 36 | SkStrokeRec* rec, const SkRect* cullRect) const { |
egdaniel | a22ea18 | 2014-06-11 06:51:51 -0700 | [diff] [blame] | 37 | return SkDashPath::FilterDashPath(dst, src, rec, cullRect, fIntervals, fCount, |
| 38 | fInitialDashLength, fInitialDashIndex, fIntervalLength); |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 39 | } |
| 40 | |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 41 | // Currently asPoints is more restrictive then it needs to be. In the future |
| 42 | // we need to: |
| 43 | // allow kRound_Cap capping (could allow rotations in the matrix with this) |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 44 | // allow paths to be returned |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 45 | bool SkDashPathEffect::asPoints(PointData* results, |
| 46 | const SkPath& src, |
| 47 | const SkStrokeRec& rec, |
reed@google.com | 4bbdeac | 2013-01-24 21:03:11 +0000 | [diff] [blame] | 48 | const SkMatrix& matrix, |
| 49 | const SkRect* cullRect) const { |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 50 | // width < 0 -> fill && width == 0 -> hairline so requiring width > 0 rules both out |
| 51 | if (fInitialDashLength < 0 || 0 >= rec.getWidth()) { |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 52 | return false; |
| 53 | } |
| 54 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 55 | // TODO: this next test could be eased up. We could allow any number of |
| 56 | // intervals as long as all the ons match and all the offs match. |
| 57 | // Additionally, they do not necessarily need to be integers. |
| 58 | // We cannot allow arbitrary intervals since we want the returned points |
| 59 | // to be uniformly sized. |
skia.committer@gmail.com | 7a03d86 | 2012-12-18 02:03:03 +0000 | [diff] [blame] | 60 | if (fCount != 2 || |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 61 | !SkScalarNearlyEqual(fIntervals[0], fIntervals[1]) || |
| 62 | !SkScalarIsInt(fIntervals[0]) || |
| 63 | !SkScalarIsInt(fIntervals[1])) { |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 64 | return false; |
| 65 | } |
| 66 | |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 67 | SkPoint pts[2]; |
| 68 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 69 | if (!src.isLine(pts)) { |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 70 | return false; |
| 71 | } |
| 72 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 73 | // TODO: this test could be eased up to allow circles |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 74 | if (SkPaint::kButt_Cap != rec.getCap()) { |
| 75 | return false; |
| 76 | } |
| 77 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 78 | // TODO: this test could be eased up for circles. Rotations could be allowed. |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 79 | if (!matrix.rectStaysRect()) { |
| 80 | return false; |
| 81 | } |
| 82 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 83 | SkScalar length = SkPoint::Distance(pts[1], pts[0]); |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 84 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 85 | SkVector tangent = pts[1] - pts[0]; |
| 86 | if (tangent.isZero()) { |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | tangent.scale(SkScalarInvert(length)); |
| 91 | |
| 92 | // TODO: make this test for horizontal & vertical lines more robust |
| 93 | bool isXAxis = true; |
| 94 | if (SK_Scalar1 == tangent.fX || -SK_Scalar1 == tangent.fX) { |
| 95 | results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); |
| 96 | } else if (SK_Scalar1 == tangent.fY || -SK_Scalar1 == tangent.fY) { |
| 97 | results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); |
| 98 | isXAxis = false; |
| 99 | } else if (SkPaint::kRound_Cap != rec.getCap()) { |
| 100 | // Angled lines don't have axis-aligned boxes. |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 101 | return false; |
| 102 | } |
| 103 | |
| 104 | if (NULL != results) { |
skia.committer@gmail.com | 7a03d86 | 2012-12-18 02:03:03 +0000 | [diff] [blame] | 105 | results->fFlags = 0; |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 106 | SkScalar clampedInitialDashLength = SkMinScalar(length, fInitialDashLength); |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 107 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 108 | if (SkPaint::kRound_Cap == rec.getCap()) { |
| 109 | results->fFlags |= PointData::kCircles_PointFlag; |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 110 | } |
| 111 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 112 | results->fNumPoints = 0; |
| 113 | SkScalar len2 = length; |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 114 | if (clampedInitialDashLength > 0 || 0 == fInitialDashIndex) { |
| 115 | SkASSERT(len2 >= clampedInitialDashLength); |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 116 | if (0 == fInitialDashIndex) { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 117 | if (clampedInitialDashLength > 0) { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 118 | if (clampedInitialDashLength >= fIntervals[0]) { |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 119 | ++results->fNumPoints; // partial first dash |
| 120 | } |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 121 | len2 -= clampedInitialDashLength; |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 122 | } |
| 123 | len2 -= fIntervals[1]; // also skip first space |
| 124 | if (len2 < 0) { |
| 125 | len2 = 0; |
| 126 | } |
| 127 | } else { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 128 | len2 -= clampedInitialDashLength; // skip initial partial empty |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 129 | } |
| 130 | } |
| 131 | int numMidPoints = SkScalarFloorToInt(SkScalarDiv(len2, fIntervalLength)); |
| 132 | results->fNumPoints += numMidPoints; |
| 133 | len2 -= numMidPoints * fIntervalLength; |
| 134 | bool partialLast = false; |
| 135 | if (len2 > 0) { |
| 136 | if (len2 < fIntervals[0]) { |
skia.committer@gmail.com | 7a03d86 | 2012-12-18 02:03:03 +0000 | [diff] [blame] | 137 | partialLast = true; |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 138 | } else { |
| 139 | ++numMidPoints; |
| 140 | ++results->fNumPoints; |
| 141 | } |
| 142 | } |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 143 | |
robertphillips@google.com | 935ad02 | 2012-12-05 19:07:21 +0000 | [diff] [blame] | 144 | results->fPoints = new SkPoint[results->fNumPoints]; |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 145 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 146 | SkScalar distance = 0; |
| 147 | int curPt = 0; |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 148 | |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 149 | if (clampedInitialDashLength > 0 || 0 == fInitialDashIndex) { |
| 150 | SkASSERT(clampedInitialDashLength <= length); |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 151 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 152 | if (0 == fInitialDashIndex) { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 153 | if (clampedInitialDashLength > 0) { |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 154 | // partial first block |
| 155 | SkASSERT(SkPaint::kRound_Cap != rec.getCap()); // can't handle partial circles |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 156 | SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength)); |
| 157 | SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength)); |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 158 | SkScalar halfWidth, halfHeight; |
| 159 | if (isXAxis) { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 160 | halfWidth = SkScalarHalf(clampedInitialDashLength); |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 161 | halfHeight = SkScalarHalf(rec.getWidth()); |
| 162 | } else { |
| 163 | halfWidth = SkScalarHalf(rec.getWidth()); |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 164 | halfHeight = SkScalarHalf(clampedInitialDashLength); |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 165 | } |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 166 | if (clampedInitialDashLength < fIntervals[0]) { |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 167 | // This one will not be like the others |
| 168 | results->fFirst.addRect(x - halfWidth, y - halfHeight, |
| 169 | x + halfWidth, y + halfHeight); |
| 170 | } else { |
| 171 | SkASSERT(curPt < results->fNumPoints); |
| 172 | results->fPoints[curPt].set(x, y); |
| 173 | ++curPt; |
| 174 | } |
| 175 | |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 176 | distance += clampedInitialDashLength; |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 177 | } |
| 178 | |
| 179 | distance += fIntervals[1]; // skip over the next blank block too |
| 180 | } else { |
robertphillips@google.com | 5c4d558 | 2013-01-15 12:53:31 +0000 | [diff] [blame] | 181 | distance += clampedInitialDashLength; |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 182 | } |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 183 | } |
robertphillips@google.com | 935ad02 | 2012-12-05 19:07:21 +0000 | [diff] [blame] | 184 | |
robertphillips@google.com | 6d87557 | 2012-12-17 18:56:29 +0000 | [diff] [blame] | 185 | if (0 != numMidPoints) { |
| 186 | distance += SkScalarHalf(fIntervals[0]); |
| 187 | |
| 188 | for (int i = 0; i < numMidPoints; ++i) { |
| 189 | SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance); |
| 190 | SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance); |
| 191 | |
| 192 | SkASSERT(curPt < results->fNumPoints); |
| 193 | results->fPoints[curPt].set(x, y); |
| 194 | ++curPt; |
| 195 | |
| 196 | distance += fIntervalLength; |
| 197 | } |
| 198 | |
| 199 | distance -= SkScalarHalf(fIntervals[0]); |
| 200 | } |
| 201 | |
| 202 | if (partialLast) { |
| 203 | // partial final block |
| 204 | SkASSERT(SkPaint::kRound_Cap != rec.getCap()); // can't handle partial circles |
| 205 | SkScalar temp = length - distance; |
| 206 | SkASSERT(temp < fIntervals[0]); |
| 207 | SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance + SkScalarHalf(temp)); |
| 208 | SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance + SkScalarHalf(temp)); |
| 209 | SkScalar halfWidth, halfHeight; |
| 210 | if (isXAxis) { |
| 211 | halfWidth = SkScalarHalf(temp); |
| 212 | halfHeight = SkScalarHalf(rec.getWidth()); |
| 213 | } else { |
| 214 | halfWidth = SkScalarHalf(rec.getWidth()); |
| 215 | halfHeight = SkScalarHalf(temp); |
| 216 | } |
| 217 | results->fLast.addRect(x - halfWidth, y - halfHeight, |
| 218 | x + halfWidth, y + halfHeight); |
| 219 | } |
| 220 | |
| 221 | SkASSERT(curPt == results->fNumPoints); |
robertphillips@google.com | 629ab54 | 2012-11-28 17:18:11 +0000 | [diff] [blame] | 222 | } |
| 223 | |
| 224 | return true; |
| 225 | } |
| 226 | |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 227 | SkPathEffect::DashType SkDashPathEffect::asADash(DashInfo* info) const { |
| 228 | if (info) { |
| 229 | if (info->fCount >= fCount && NULL != info->fIntervals) { |
| 230 | memcpy(info->fIntervals, fIntervals, fCount * sizeof(SkScalar)); |
| 231 | } |
| 232 | info->fCount = fCount; |
| 233 | info->fPhase = fPhase; |
| 234 | } |
| 235 | return kDash_DashType; |
| 236 | } |
| 237 | |
robertphillips@google.com | c2eae47 | 2013-10-21 12:26:10 +0000 | [diff] [blame] | 238 | SkFlattenable::Factory SkDashPathEffect::getFactory() const { |
commit-bot@chromium.org | 7fc2228 | 2014-03-07 14:43:00 +0000 | [diff] [blame] | 239 | return CreateProc; |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 240 | } |
| 241 | |
commit-bot@chromium.org | 8b0e8ac | 2014-01-30 18:58:24 +0000 | [diff] [blame] | 242 | void SkDashPathEffect::flatten(SkWriteBuffer& buffer) const { |
djsollen@google.com | 5492424 | 2012-03-29 15:18:04 +0000 | [diff] [blame] | 243 | this->INHERITED::flatten(buffer); |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 244 | buffer.writeScalar(fPhase); |
djsollen@google.com | c73dd5c | 2012-08-07 15:54:32 +0000 | [diff] [blame] | 245 | buffer.writeScalarArray(fIntervals, fCount); |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 246 | } |
| 247 | |
commit-bot@chromium.org | 8b0e8ac | 2014-01-30 18:58:24 +0000 | [diff] [blame] | 248 | SkFlattenable* SkDashPathEffect::CreateProc(SkReadBuffer& buffer) { |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 249 | return SkNEW_ARGS(SkDashPathEffect, (buffer)); |
| 250 | } |
| 251 | |
commit-bot@chromium.org | 8b0e8ac | 2014-01-30 18:58:24 +0000 | [diff] [blame] | 252 | SkDashPathEffect::SkDashPathEffect(SkReadBuffer& buffer) : INHERITED(buffer) { |
commit-bot@chromium.org | 7ed173b | 2014-05-20 17:31:08 +0000 | [diff] [blame] | 253 | bool useOldPic = buffer.isVersionLT(SkReadBuffer::kDashWritesPhaseIntervals_Version); |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 254 | if (useOldPic) { |
| 255 | fInitialDashIndex = buffer.readInt(); |
| 256 | fInitialDashLength = buffer.readScalar(); |
| 257 | fIntervalLength = buffer.readScalar(); |
| 258 | buffer.readBool(); // Dummy for old ScalarToFit field |
| 259 | } else { |
| 260 | fPhase = buffer.readScalar(); |
| 261 | } |
rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 262 | |
djsollen@google.com | c73dd5c | 2012-08-07 15:54:32 +0000 | [diff] [blame] | 263 | fCount = buffer.getArrayCount(); |
commit-bot@chromium.org | ef74fa1 | 2013-12-17 20:49:46 +0000 | [diff] [blame] | 264 | size_t allocSize = sizeof(SkScalar) * fCount; |
| 265 | if (buffer.validateAvailable(allocSize)) { |
| 266 | fIntervals = (SkScalar*)sk_malloc_throw(allocSize); |
| 267 | buffer.readScalarArray(fIntervals, fCount); |
| 268 | } else { |
| 269 | fIntervals = NULL; |
| 270 | } |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 271 | |
| 272 | if (useOldPic) { |
| 273 | fPhase = 0; |
commit-bot@chromium.org | 6b3eebc | 2014-05-13 14:45:29 +0000 | [diff] [blame] | 274 | if (fInitialDashLength != -1) { // Signal for bad dash interval |
| 275 | for (int i = 0; i < fInitialDashIndex; ++i) { |
| 276 | fPhase += fIntervals[i]; |
| 277 | } |
| 278 | fPhase += fIntervals[fInitialDashIndex] - fInitialDashLength; |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 279 | } |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 280 | } else { |
egdaniel | a22ea18 | 2014-06-11 06:51:51 -0700 | [diff] [blame] | 281 | // set the internal data members, fPhase should have been between 0 and intervalLength |
| 282 | // when written to buffer so no need to adjust it |
| 283 | SkDashPath::CalcDashParameters(fPhase, fIntervals, fCount, &fInitialDashLength, |
| 284 | &fInitialDashIndex, &fIntervalLength); |
commit-bot@chromium.org | aec1438 | 2014-04-22 15:21:18 +0000 | [diff] [blame] | 285 | } |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 286 | } |