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 /tests/ColorFilterTest.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 'tests/ColorFilterTest.cpp')
-rw-r--r-- | tests/ColorFilterTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ColorFilterTest.cpp b/tests/ColorFilterTest.cpp index 6bfd9f26a2..7cfb467c2b 100644 --- a/tests/ColorFilterTest.cpp +++ b/tests/ColorFilterTest.cpp @@ -20,7 +20,7 @@ static SkFlattenable* reincarnate_flattenable(SkFlattenable* obj) { size_t size = wb.size(); SkAutoSMalloc<1024> storage(size); // make a copy into storage - wb.flatten(storage.get()); + wb.writeToMemory(storage.get()); SkOrderedReadBuffer rb(storage.get(), size); return rb.readFlattenable(); |