OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkDashPathEffect.h" | 10 #include "SkDashPathEffect.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 } | 548 } |
549 | 549 |
550 SkDashPathEffect::SkDashPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(
buffer) { | 550 SkDashPathEffect::SkDashPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(
buffer) { |
551 fInitialDashIndex = buffer.readInt(); | 551 fInitialDashIndex = buffer.readInt(); |
552 fInitialDashLength = buffer.readScalar(); | 552 fInitialDashLength = buffer.readScalar(); |
553 fIntervalLength = buffer.readScalar(); | 553 fIntervalLength = buffer.readScalar(); |
554 fScaleToFit = buffer.readBool(); | 554 fScaleToFit = buffer.readBool(); |
555 | 555 |
556 fCount = buffer.getArrayCount(); | 556 fCount = buffer.getArrayCount(); |
557 fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * fCount); | 557 fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * fCount); |
558 buffer.readScalarArray(fIntervals); | 558 buffer.readScalarArray(fIntervals, fCount); |
559 } | 559 } |
OLD | NEW |