|
|
Chromium Code Reviews
DescriptionReland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement)
It turns out that HTMLCanvasElement is always premultiplied in Blink, so
we cannot simply use a decoder to re-decode it to a un-premultiplied format.
The strategy this CL takes is that after cropping the HTMLCanvasElement
into a SkImage, we convert the SkImage into a un-premultiplied format if
that's what the option specifies.
PS#1 causes compilation error, PS#4 should work.
Committed: https://crrev.com/82089a29904df32dcbc0508e332c69c911193e09
Cr-Commit-Position: refs/heads/master@{#375212}
Patch Set 1 #Patch Set 2 : Fix compile error that causes revert #Patch Set 3 : rebase #Patch Set 4 : update layout test #
Messages
Total messages: 34 (17 generated)
xidachen@chromium.org changed reviewers: + junov@chromium.org
PTAL
Issue title should say ImageBitmap
On 2016/02/12 14:32:01, Justin Novosad wrote: > Issue title should say ImageBitmap (somewhere)
On 2016/02/12 14:32:23, Justin Novosad wrote: > On 2016/02/12 14:32:01, Justin Novosad wrote: > > Issue title should say ImageBitmap > (somewhere) lgtm
Description was changed from ========== Revise the code for premultiplyAlpha=false for HTMLCanvasElement It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. ========== to ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. ==========
The CQ bit was checked by xidachen@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694793002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by xidachen@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694793002/1
Message was sent while issue was closed.
Description was changed from ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. ========== to ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1693863002/ by xidachen@chromium.org. The reason for reverting is: Cause compilation error https://build.chromium.org/p/chromium.mac/builders/Mac%20Builder/builds/37356....
Message was sent while issue was closed.
Description was changed from ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. ========== to ========== Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. PS#1 causes compilation error, PS#4 should work. ==========
Message was sent while issue was closed.
xidachen@chromium.org changed reviewers: + jbroman@chromium.org
Message was sent while issue was closed.
PTAL
Looks like a straightforward rebase and bugfix, lgtm to reland (on the basis of junov's approval of the original CL).
The CQ bit was checked by xidachen@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694793002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694793002/50001
The CQ bit was unchecked by xidachen@chromium.org
The CQ bit was checked by xidachen@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from junov@chromium.org Link to the patchset: https://codereview.chromium.org/1694793002/#ps50001 (title: "update layout test")
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by xidachen@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694793002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694793002/50001
Message was sent while issue was closed.
Description was changed from ========== Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. PS#1 causes compilation error, PS#4 should work. ========== to ========== Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. PS#1 causes compilation error, PS#4 should work. ==========
Message was sent while issue was closed.
Committed patchset #4 (id:50001)
Message was sent while issue was closed.
Description was changed from ========== Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. PS#1 causes compilation error, PS#4 should work. ========== to ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. Committed: https://crrev.com/32f7197769a8ab4b365138856d0be6dfefa3dd6e Cr-Commit-Position: refs/heads/master@{#375191} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/32f7197769a8ab4b365138856d0be6dfefa3dd6e Cr-Commit-Position: refs/heads/master@{#375191}
Message was sent while issue was closed.
Description was changed from ========== Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. Committed: https://crrev.com/32f7197769a8ab4b365138856d0be6dfefa3dd6e Cr-Commit-Position: refs/heads/master@{#375191} ========== to ========== Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) It turns out that HTMLCanvasElement is always premultiplied in Blink, so we cannot simply use a decoder to re-decode it to a un-premultiplied format. The strategy this CL takes is that after cropping the HTMLCanvasElement into a SkImage, we convert the SkImage into a un-premultiplied format if that's what the option specifies. PS#1 causes compilation error, PS#4 should work. Committed: https://crrev.com/82089a29904df32dcbc0508e332c69c911193e09 Cr-Commit-Position: refs/heads/master@{#375212} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/82089a29904df32dcbc0508e332c69c911193e09 Cr-Commit-Position: refs/heads/master@{#375212} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
