aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureData.h
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2014-12-09 05:23:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-09 05:23:12 -0800
commit0c4aba6edb9900c597359dfa49d3ce4a41bc5dd1 (patch)
tree0a78e9be1fabb6165e41abaadb15c5e5096f0ff2 /src/core/SkPictureData.h
parent8d95ffa497091d0c9c7cda099684c7bca6714a17 (diff)
Replace EncodeBitmap with an interface.
Gives more flexibility to the caller to decide whether to use the encoded data returned by refEncodedData(). Provides an implementation that supports the old version of SkPicture::serialize(). TODO: Update Chrome, so we can remove SK_LEGACY_ENCODE_BITMAP entirely BUG=skia:3190 Review URL: https://codereview.chromium.org/784643002
Diffstat (limited to 'src/core/SkPictureData.h')
-rw-r--r--src/core/SkPictureData.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPictureData.h b/src/core/SkPictureData.h
index 667880675b..ab78f8a313 100644
--- a/src/core/SkPictureData.h
+++ b/src/core/SkPictureData.h
@@ -15,6 +15,7 @@
class SkData;
class SkPictureRecord;
+class SkPixelSerializer;
class SkReader32;
class SkStream;
class SkWStream;
@@ -64,7 +65,7 @@ public:
virtual ~SkPictureData();
- void serialize(SkWStream*, SkPicture::EncodeBitmap) const;
+ void serialize(SkWStream*, SkPixelSerializer*) const;
void flatten(SkWriteBuffer&) const;
bool containsBitmaps() const;