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
This commit is contained in:
parent
7765a477ee
commit
21217abe0d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user