aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-24 16:31:30 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-24 16:31:30 +0000
commit24287c15d6c80560fc023b7924ff0bc41ad7f587 (patch)
treecfac076dd2c6fcf5edad92ff45fd06d83a699876
parent68400767be5f72e4b9750ccc8bcf0078d42869a7 (diff)
Revert "Patch to prevent chromium breakage until the DEPS."
This reverts commit d2a284728d30082d46b02c39d916294c6d36e11f. Review URL: https://codereview.chromium.org/16019005 git-svn-id: http://skia.googlecode.com/svn/trunk@9275 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--include/core/SkPicture.h15
-rw-r--r--src/core/SkPicture.cpp28
2 files changed, 0 insertions, 43 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 82afef0a16..aea8fc726d 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -189,21 +189,6 @@ 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
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 6d3772823c..ab2faea6b6 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -301,34 +301,6 @@ void SkPicture::initFromStream(SkStream* stream, bool* success, InstallPixelRefP
}
}
-#define PREVENT_CHROME_BREAKAGE
-#ifdef PREVENT_CHROME_BREAKAGE
-// This block of code is to allow chromium to build until https://codereview.chromium.org/15496006/
-// is submitted. Then it will be reverted.
-#include "SkThread.h"
-
-static SkPicture::OldEncodeBitmap gOldEncodeBitmapFunction;
-
-SK_DECLARE_STATIC_MUTEX(gEncodeFunctionMutex);
-
-static SkData* encode_from_old_encoder(size_t* pixelRefOffset, const SkBitmap& bm) {
- SkASSERT(gOldEncodeBitmapFunction != NULL);
- SkDynamicMemoryWStream stream;
- if (!gOldEncodeBitmapFunction(&stream, bm)) {
- return NULL;
- }
- return stream.copyToData();
-}
-
-void SkPicture::serialize(SkWStream* stream, OldEncodeBitmap oldEncoder) const {
- SkAutoMutexAcquire ac(gEncodeFunctionMutex);
- gOldEncodeBitmapFunction = oldEncoder;
- this->serialize(stream, &encode_from_old_encoder);
- gOldEncodeBitmapFunction = NULL;
-}
-
-#endif // PREVENT_CHROME_BREAKAGE
-
void SkPicture::serialize(SkWStream* stream, EncodeBitmap encoder) const {
SkPicturePlayback* playback = fPlayback;