DescriptionChange createImageBitmap(Blob) to use ImageDecoder instead of ImageSource
At this moment, createImageBitmap(Blob) uses ImageSource for image decoding,
which internally uses DeferredImageDecoder. However, the problem is that
we cannot set the AlphaPremultiplied and the GammaAndColorProfileApplied
parameters in this case.
This CL changes the ImageSource to ImageDecoder where we could explicitly
set the premultiplyAlpha and colorProfile parameters.
This change will makes it easy later on when we handle premultiplyAlpha
=false in the case of createImageBitmap(Blob). Note that this CL
doesn't change any behavior, so as long as all layout tests pass, it
should be fine.
BUG=589132
Committed: https://crrev.com/13834522ca6d7969f80743285dff0e09050b8227
Cr-Commit-Position: refs/heads/master@{#378376}
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 17 (9 generated)
|