Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: src/image/SkImage.cpp

Issue 1218663012: Remove SkImage::NewFromBitmap encoded data helper (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index d3533a9a4a58cd7ab7d87ada6ec5bc4931314f65..3817733942d4efcc5f80a1c42688912a2bd41c57 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698