diff options
author | 2012-04-12 13:24:04 +0000 | |
---|---|---|
committer | 2012-04-12 13:24:04 +0000 | |
commit | 2b2ede3e713065e1bac461787b0aafb03eaf871f (patch) | |
tree | 180a113560b219569ef06556982ec99fcac5ca36 /src/effects/Sk1DPathEffect.cpp | |
parent | 7463f190972f45157242d2f1f4368de78e5863d7 (diff) |
Decouple the SkFlattenable from SkReader32/SkWriter32.
The current impl for SkFlattenable read/write buffers is
that they extend from SkReader32 and SkWriter32, but that
dependency must be abstract if we are to add any other
serialization format.
Review URL: https://codereview.appspot.com/5999045
git-svn-id: http://skia.googlecode.com/svn/trunk@3654 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/Sk1DPathEffect.cpp')
-rw-r--r-- | src/effects/Sk1DPathEffect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp index 62ca7b39b8..108653846a 100644 --- a/src/effects/Sk1DPathEffect.cpp +++ b/src/effects/Sk1DPathEffect.cpp @@ -141,7 +141,7 @@ static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, SkPath1DPathEffect::SkPath1DPathEffect(SkFlattenableReadBuffer& buffer) { fAdvance = buffer.readScalar(); if (fAdvance > 0) { - fPath.unflatten(buffer); + buffer.readPath(&fPath); fInitialOffset = buffer.readScalar(); fStyle = (Style) buffer.readU8(); } else { @@ -160,7 +160,7 @@ void SkPath1DPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { this->INHERITED::flatten(buffer); buffer.writeScalar(fAdvance); if (fAdvance > 0) { - fPath.flatten(buffer); + buffer.writePath(fPath); buffer.writeScalar(fInitialOffset); buffer.write8(fStyle); } |