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:
fmalita 2015-07-08 11:34:20 -07:00 committed by Commit bot
parent 7765a477ee
commit 21217abe0d

View File

@ -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);
}