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

Issue 1756593002: Fix bug for createImageBitmap(HTMLImageElement, premultiplyAlpha=false) (Closed)

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

Description

Fix bug for createImageBitmap(HTMLImageElement, premultiplyAlpha=false) When creating an ImageBitmap from an HTMLImageElement, it calls the cropImage() function in ImageBitmap class, and it should not get into the block of using ImageDecoder, because the SkImage that can be obtained from image->imageForCurrentFrame() is already un-premultiplied in the case of HTMLImageElement. Locally I have WebGL conformance and conformance2 tests that pass with this change but fail without this change. BUG=591263 Committed: https://crrev.com/2160ae0126d1adc88ec8abe5f97291119cb42d68 Cr-Commit-Position: refs/heads/master@{#378864}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : back to PS#1, which makes more sense #

Total comments: 2

Patch Set 4 : use enum instead of bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756593002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756593002/20001
4 years, 9 months ago (2016-03-01 21:44:04 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 23:34:04 UTC) #6
xidachen
PTAL.
4 years, 9 months ago (2016-03-02 02:19:29 UTC) #9
Justin Novosad
https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode168 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:168: m_image = cropImage(image->cachedImage()->image(), cropRect, flipY, m_isPremultiplied, false); Poor readability. ...
4 years, 9 months ago (2016-03-02 17:19:25 UTC) #10
xidachen
https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode168 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:168: m_image = cropImage(image->cachedImage()->image(), cropRect, flipY, m_isPremultiplied, false); On 2016/03/02 ...
4 years, 9 months ago (2016-03-02 18:00:57 UTC) #11
Justin Novosad
On 2016/03/02 18:00:57, xidachen wrote: > https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp > File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): > > https://codereview.chromium.org/1756593002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode168 > ...
4 years, 9 months ago (2016-03-02 19:40:51 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756593002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756593002/60001
4 years, 9 months ago (2016-03-02 19:42:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756593002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756593002/60001
4 years, 9 months ago (2016-03-02 20:55:56 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-02 22:46:09 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 22:47:21 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2160ae0126d1adc88ec8abe5f97291119cb42d68
Cr-Commit-Position: refs/heads/master@{#378864}

Powered by Google App Engine
This is Rietveld 408576698