diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-07 15:54:32 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-07 15:54:32 +0000 |
commit | c73dd5c6880739f26216f198c757028fd28df1a4 (patch) | |
tree | 17a4984fe2caecb5d36a27324eaa698550d4db04 /src/core/SkPathEffect.cpp | |
parent | 7b4531f64cbd85d32a77ceab1bdec8335c5a7864 (diff) |
Update SkFlattenable buffers to be more modular.
This CL is an effort to stage the conversion to named
parameters for all SkFlattenable commands. This particular
stage only does the following two things...
1. Move flattenable buffers from SkFlattenable.h into
their own header.
2. Update and Add new read write methods for better clarity
and convenience.
BUG=
Review URL: https://codereview.appspot.com/6448095
git-svn-id: http://skia.googlecode.com/svn/trunk@4980 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPathEffect.cpp')
-rw-r--r-- | src/core/SkPathEffect.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkPathEffect.cpp b/src/core/SkPathEffect.cpp index 8708e7e8f9..6abce74863 100644 --- a/src/core/SkPathEffect.cpp +++ b/src/core/SkPathEffect.cpp @@ -10,6 +10,7 @@ #include "SkPathEffect.h" #include "SkPath.h" #include "SkBuffer.h" +#include "SkFlattenableBuffers.h" #include "SkPaintDefaults.h" // must be < 0, since ==0 means hairline, and >0 means normal stroke @@ -141,8 +142,8 @@ void SkPairPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { } SkPairPathEffect::SkPairPathEffect(SkFlattenableReadBuffer& buffer) { - fPE0 = (SkPathEffect*)buffer.readFlattenable(); - fPE1 = (SkPathEffect*)buffer.readFlattenable(); + fPE0 = buffer.readFlattenableT<SkPathEffect>(); + fPE1 = buffer.readFlattenableT<SkPathEffect>(); // either of these may fail, so we have to check for nulls later on } |