diff options
author | fmalita <fmalita@chromium.org> | 2015-07-08 11:34:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-08 11:34:20 -0700 |
commit | 21217abe0d5d1defd414a2b78be3893efa7626c1 (patch) | |
tree | 478a72b91b07cd17ca9bae55a2d9d70efde947a8 | |
parent | 7765a477ee3ca5e2c6ada1e16c31dfaae2079240 (diff) |
Remove SkImage::NewFromBitmap encoded data helper
Attempting to instantiate image decoders at this stage introduces
embedder dependencies.
Instead, we can just let callers set up any needed generators on the
bitmap.
R=reed@google.com
Review URL: https://codereview.chromium.org/1218663012
-rw-r--r-- | src/image/SkImage.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp index d3533a9a4a..3817733942 100644 --- a/src/image/SkImage.cpp +++ b/src/image/SkImage.cpp @@ -253,12 +253,6 @@ SkImage* SkImage::NewFromBitmap(const SkBitmap& bm) { } #endif - // Encoded version? - if (SkData* encoded = pr->refEncodedData()) { - SkAutoTUnref<SkData> data(encoded); - return SkImage::NewFromEncoded(encoded); // todo: add origin/subset/etc? - } - // This will check for immutable (share or copy) return SkNewImageFromRasterBitmap(bm, false, NULL); } |