aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-21 20:45:03 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-21 20:45:03 +0000
commitedef4aa8d84f9d0cfa49e9b7c761bb986af63142 (patch)
tree3a5068bc5c64964ba3d07dc0e7158583fb745af2 /include/core/SkPicture.h
parent61d6c9ef8fa1f650722e13d35a9d4d490ffa24b4 (diff)
Patch to prevent chromium breakage until the DEPS.
Once https://codereview.chromium.org/15489004/ is submitted to Skia, a DEPS roll into chrome will break due to a change in the API. A long term fix for chrome to use the new API is at https://codereview.chromium.org/15496006/, but since it depends on the earlier Skia change, this patch fills in the gap. Will be reverted once https://codereview.chromium.org/15496006/ is submitted to chrome. R=djsollen@google.com Review URL: https://codereview.chromium.org/15538005 git-svn-id: http://skia.googlecode.com/svn/trunk@9228 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index f4acdc8322..156d098ae6 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -189,6 +189,21 @@ public:
*/
void serialize(SkWStream*, EncodeBitmap encoder = NULL) const;
+ /**
+ * @Deprecated
+ * Old version of EncodeBitmap, here to prevent chrome tree from going
+ * red. Will be removed once chrome is switched to the new version.
+ */
+ typedef bool (*OldEncodeBitmap)(SkWStream*, const SkBitmap&);
+
+ /**
+ * @Deprecated
+ * Old version of serialize, taking the old version of EncodeBitmap,
+ * to keep the chrome build green. Will be removed once chrome is
+ * switched to the new version.
+ */
+ void serialize(SkWStream*, OldEncodeBitmap) const;
+
#ifdef SK_BUILD_FOR_ANDROID
/** Signals that the caller is prematurely done replaying the drawing
commands. This can be called from a canvas virtual while the picture