diff options
author | Mike Reed <reed@google.com> | 2016-10-25 09:57:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-25 14:19:07 +0000 |
commit | 7614794c9ad14d76abed6cf00890ad1a09c2cb8b (patch) | |
tree | fb79a90fe28039038d5d54e809f68e83399cb32a /include/core/SkImageGenerator.h | |
parent | 67c7c81a82b6351e9fbbf235084d7120162d9268 (diff) |
remove discardablepixelref
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3883
Change-Id: Ica284be78563a4ccd6e0cb07404064fb5511ba57
Reviewed-on: https://skia-review.googlesource.com/3883
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include/core/SkImageGenerator.h')
-rw-r--r-- | include/core/SkImageGenerator.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h index f815898392..5e7214c7d1 100644 --- a/include/core/SkImageGenerator.h +++ b/include/core/SkImageGenerator.h @@ -30,36 +30,6 @@ class SkPicture; #define SK_REFENCODEDDATA_CTXPARAM GrContext* ctx #endif -/** - * Takes ownership of SkImageGenerator. If this method fails for - * whatever reason, it will return false and immediatetely delete - * the generator. If it succeeds, it will modify destination - * bitmap. - * - * If generator is NULL, will safely return false. - * - * If this fails or when the SkDiscardablePixelRef that is - * installed into destination is destroyed, it will - * delete the generator. Therefore, generator should be - * allocated with new. - * - * @param destination Upon success, this bitmap will be - * configured and have a pixelref installed. - * - * @return true iff successful. - */ -SK_API bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination); - -/** - * On success, installs a discardable pixelref into destination, based on encoded data. - * Regardless of success or failure, the caller must still balance their ownership of encoded. - */ -SK_API bool SkDEPRECATED_InstallDiscardablePixelRef(SkData* encoded, SkBitmap* destination); - -/** - * An interface that allows a purgeable PixelRef (such as a - * SkDiscardablePixelRef) to decode and re-decode an image as needed. - */ class SK_API SkImageGenerator : public SkNoncopyable { public: /** |