From c73dd5c6880739f26216f198c757028fd28df1a4 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Tue, 7 Aug 2012 15:54:32 +0000 Subject: 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 --- tests/ColorFilterTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/ColorFilterTest.cpp') 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(); -- cgit v1.2.3