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

Issue 2267653005: Resolving drawImage issue with canvases that contain bitmap images (Closed)

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

Description

Adding proper check for canvas type to HTMLCanvasElement::getSourceImageForCanvas() such that drawImage can correctly draw canvases with bitmap images. BUG=639841 Committed: https://crrev.com/4d29ebec048d83aac139ec5edcbe22d107351b7b Committed: https://crrev.com/d161245684a7adab144318deec691ad6fdc6251e Cr-Original-Commit-Position: refs/heads/master@{#413731} Cr-Commit-Position: refs/heads/master@{#413828}

Patch Set 1 #

Total comments: 6

Patch Set 2 #

Total comments: 2

Patch Set 3 : Addressing comments from patch set 2. #

Patch Set 4 : Resolving the conflict with DCHECK on canvas type. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-drawImage.html View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (18 generated)
zakerinasab
When returning m_image from ImageBitmapRenderingContext, I tried to return RefPtr<Image> frist, but then presubmit check ...
4 years, 4 months ago (2016-08-22 18:12:02 UTC) #4
Justin Novosad
For the code review description: this will become the commit comment when the change lands. ...
4 years, 4 months ago (2016-08-22 19:28:23 UTC) #5
zakerinasab
On 2016/08/22 19:28:23, Justin Novosad wrote: > For the code review description: this will become ...
4 years, 4 months ago (2016-08-22 19:33:59 UTC) #7
Justin Novosad
https://codereview.chromium.org/2267653005/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2267653005/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1105 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1105: if (renderingContext()->getContextType() == CanvasRenderingContext::ContextImageBitmap) Avoid explicit type checks when ...
4 years, 4 months ago (2016-08-22 19:42:25 UTC) #9
zakerinasab
https://codereview.chromium.org/2267653005/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2267653005/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1105 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1105: if (renderingContext()->getContextType() == CanvasRenderingContext::ContextImageBitmap) On 2016/08/22 19:42:25, Justin Novosad ...
4 years, 4 months ago (2016-08-22 19:55:50 UTC) #10
Justin Novosad
https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1109 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1109: skImage = buffer()->newSkImageSnapshot(hint, reason); Just realized this code may ...
4 years, 4 months ago (2016-08-22 20:03:02 UTC) #11
zakerinasab
https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1109 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1109: skImage = buffer()->newSkImageSnapshot(hint, reason); On 2016/08/22 20:03:02, Justin Novosad ...
4 years, 4 months ago (2016-08-22 20:19:10 UTC) #12
Justin Novosad
On 2016/08/22 20:19:10, zakerinasab wrote: > https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp > File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): > > https://codereview.chromium.org/2267653005/diff/40001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1109 > ...
4 years, 4 months ago (2016-08-22 20:38:26 UTC) #13
Justin Novosad
lgtm
4 years, 4 months ago (2016-08-22 20:38:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267653005/60001
4 years, 4 months ago (2016-08-22 20:42:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/224399)
4 years, 4 months ago (2016-08-22 22:45:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267653005/60001
4 years, 4 months ago (2016-08-23 13:58:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267653005/60001
4 years, 4 months ago (2016-08-23 14:18:58 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-23 14:23:14 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4d29ebec048d83aac139ec5edcbe22d107351b7b Cr-Commit-Position: refs/heads/master@{#413731}
4 years, 4 months ago (2016-08-23 14:25:17 UTC) #27
xidachen
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/2269073002/ by xidachen@chromium.org. ...
4 years, 4 months ago (2016-08-23 14:53:16 UTC) #28
zakerinasab
New patch submitted.
4 years, 4 months ago (2016-08-23 17:07:07 UTC) #29
Justin Novosad
On 2016/08/23 17:07:07, zakerinasab wrote: > New patch submitted. lgtm
4 years, 4 months ago (2016-08-23 18:47:48 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267653005/120001
4 years, 4 months ago (2016-08-23 18:51:56 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 4 months ago (2016-08-23 20:44:35 UTC) #37
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 20:46:44 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d161245684a7adab144318deec691ad6fdc6251e
Cr-Commit-Position: refs/heads/master@{#413828}

Powered by Google App Engine
This is Rietveld 408576698