Commit baed7149 authored by reed's avatar reed Committed by Commit bot

remove call to deprecated preroll() -- cc manages triggering/caching decodes

I just now (after posting this) see https://bugs.chromium.org/p/chromium/issues/detail?id=595090

Calling preroll() is (1) deprecated, and (2) is no guarantee that the bits will hang around, since the cache is volatile. If the desire is to "force" the codec to produce a raster, then lest just ask the codec to do that (i.e. *not* be lazy).

thoughts?

BUG=

Review-Url: https://codereview.chromium.org/2587433003
Cr-Commit-Position: refs/heads/master@{#439878}
parent 8c15fc3e
......@@ -506,8 +506,6 @@ static PassRefPtr<StaticBitmapImage> cropImageAndApplyColorSpaceConversion(
if (parsedOptions.premultiplyAlpha && imageFormat == DontPremultiplyAlpha)
return StaticBitmapImage::create(
unPremulSkImageToPremul(croppedSkImage.get()));
// Call preroll to trigger image decoding.
croppedSkImage->preroll();
return StaticBitmapImage::create(std::move(croppedSkImage));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment