Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Issue 1694793002: Reland of: Revise the code for premultiplyAlpha=false for createImageBitmap(HTMLCanvasElement) (Closed)

Created:
4 years, 10 months ago by xidachen
Modified:
4 years, 10 months ago
Reviewers:
jbroman, Justin Novosad
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : Fix compile error that causes revert #

Patch Set 3 : rebase #

Patch Set 4 : update layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -819 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-with-options.html View 2 3 6 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-with-options-expected.txt View 2 3 76 chunks +15 lines, -815 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 34 (17 generated)
xidachen
PTAL
4 years, 10 months ago (2016-02-12 13:35:50 UTC) #2
Justin Novosad
Issue title should say ImageBitmap
4 years, 10 months ago (2016-02-12 14:32:01 UTC) #3
Justin Novosad
On 2016/02/12 14:32:01, Justin Novosad wrote: > Issue title should say ImageBitmap (somewhere)
4 years, 10 months ago (2016-02-12 14:32:23 UTC) #4
Justin Novosad
On 2016/02/12 14:32:23, Justin Novosad wrote: > On 2016/02/12 14:32:01, Justin Novosad wrote: > > ...
4 years, 10 months ago (2016-02-12 14:33:51 UTC) #5
commit-bot: I haz the power
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
4 years, 10 months ago (2016-02-12 14:39:52 UTC) #8
commit-bot: I haz the power
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_chromeos_ozone_rel_ng/builds/124651)
4 years, 10 months ago (2016-02-12 15:35:05 UTC) #10
commit-bot: I haz the power
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
4 years, 10 months ago (2016-02-12 16:03:35 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-12 16:08:50 UTC) #14
xidachen
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1693863002/ by xidachen@chromium.org. ...
4 years, 10 months ago (2016-02-12 16:33:42 UTC) #15
xidachen
PTAL
4 years, 10 months ago (2016-02-12 16:56:23 UTC) #18
jbroman
Looks like a straightforward rebase and bugfix, lgtm to reland (on the basis of junov's ...
4 years, 10 months ago (2016-02-12 17:03:08 UTC) #19
commit-bot: I haz the power
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
4 years, 10 months ago (2016-02-12 17:04:43 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 18:22:11 UTC) #26
commit-bot: I haz the power
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
4 years, 10 months ago (2016-02-12 18:25:40 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:50001)
4 years, 10 months ago (2016-02-12 18:36:23 UTC) #30
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/32f7197769a8ab4b365138856d0be6dfefa3dd6e Cr-Commit-Position: refs/heads/master@{#375191}
4 years, 10 months ago (2016-02-16 22:43:27 UTC) #32
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:43:59 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/82089a29904df32dcbc0508e332c69c911193e09
Cr-Commit-Position: refs/heads/master@{#375212}

Powered by Google App Engine
This is Rietveld 408576698