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

Issue 2221173003: Updates on canvas backreference for canvas rendering contexts (Closed)

Created:
4 years, 4 months ago by xlai (Olivia)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, ajuma+watch-canvas_chromium.org, dshwang, haraken, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updates on canvas backreference on canvas rendering contexts Based on recent proposal (https://wiki.whatwg.org/wiki/OffscreenCanvas) change, the backreference to either html canvas or offscreen canvas should be named as "canvas" consistently for all rendering contexts. This CL changes the the different name "offscreencanvas" in OffscreenCanvasRenderingContext2D. Also, this CL allows Webgl rendering contexts that are created from OffscreenCanvas to return the OffscreenCanvas, and those that are created from HTMLCanvas to return the HTMLCanvasElement, via the same "canvas" attribute. BUG=637022 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/903a3a827ddbf8dc46ada202c6768a997860c7bf Cr-Commit-Position: refs/heads/master@{#411444}

Patch Set 1 #

Patch Set 2 : webgl #

Patch Set 3 : It's already readonly #

Patch Set 4 : Adding test #

Patch Set 5 : generate test function #

Patch Set 6 : Test modified #

Patch Set 7 : Unify Canvas attribute on webgl rendering context #

Total comments: 2

Patch Set 8 : Using generate_tests() #

Total comments: 1

Patch Set 9 : Further simplify layout test #

Total comments: 1

Patch Set 10 : Rebase master + indent nits #

Patch Set 11 : Interface listing expected texts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/generated.gni View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (17 generated)
xlai (Olivia)
junov@chromium.org: Please review changes in CanvasRenderingContext2D and OffscreenCanvasRenderingContext2D.idl kbr@chromium.org: Please review changes in WebGLRenderingContextBase.idl Thanks!
4 years, 4 months ago (2016-08-08 20:33:58 UTC) #3
Ken Russell (switch to Gerrit)
Not seeing WebGL-related changes in the current patch set.
4 years, 4 months ago (2016-08-08 20:56:44 UTC) #7
xlai (Olivia)
On 2016/08/08 20:56:44, Ken Russell wrote: > Not seeing WebGL-related changes in the current patch ...
4 years, 4 months ago (2016-08-08 21:11:18 UTC) #8
Justin Novosad
Hmmm. No tests needed to be updated as a result of this change? Then we ...
4 years, 4 months ago (2016-08-09 14:38:35 UTC) #9
xlai (Olivia)
test added
4 years, 4 months ago (2016-08-09 17:43:34 UTC) #10
Justin Novosad
On 2016/08/09 17:43:34, xlai (Olivia) wrote: > test added Could you refactor it to use ...
4 years, 4 months ago (2016-08-09 20:26:46 UTC) #11
xlai (Olivia)
On 2016/08/09 20:26:46, Justin Novosad wrote: > On 2016/08/09 17:43:34, xlai (Olivia) wrote: > > ...
4 years, 4 months ago (2016-08-09 22:11:08 UTC) #12
Ken Russell (switch to Gerrit)
On 2016/08/09 22:11:08, xlai (Olivia) wrote: > On 2016/08/09 20:26:46, Justin Novosad wrote: > > ...
4 years, 4 months ago (2016-08-09 22:25:50 UTC) #13
xlai (Olivia)
japhet@chromium.org: Please review changes in Source/bindings/modules/v8. kbr@chromium.org: Please review changes in Source/modules/webgl/. Based on your ...
4 years, 4 months ago (2016-08-10 16:42:19 UTC) #16
Ken Russell (switch to Gerrit)
Excellent! LGTM.
4 years, 4 months ago (2016-08-10 18:52:34 UTC) #17
Justin Novosad
https://codereview.chromium.org/2221173003/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html File third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html (right): https://codereview.chromium.org/2221173003/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html#newcode4 third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html:4: function generateTest(canvas, context, anotherCanvas, message) I meant use "generate_tests" ...
4 years, 4 months ago (2016-08-10 18:56:33 UTC) #18
xlai (Olivia)
https://codereview.chromium.org/2221173003/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html File third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html (right): https://codereview.chromium.org/2221173003/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html#newcode4 third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html:4: function generateTest(canvas, context, anotherCanvas, message) On 2016/08/10 18:56:33, Justin ...
4 years, 4 months ago (2016-08-10 20:51:29 UTC) #19
Nate Chapin
lgtm
4 years, 4 months ago (2016-08-10 21:22:15 UTC) #20
Justin Novosad
https://codereview.chromium.org/2221173003/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html File third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html (right): https://codereview.chromium.org/2221173003/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html#newcode34 third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html:34: generate_tests(test_back_ref, tests); You are not using the test pattern ...
4 years, 4 months ago (2016-08-11 17:37:58 UTC) #21
xlai (Olivia)
Further simplified the layout test
4 years, 4 months ago (2016-08-11 17:53:45 UTC) #22
xlai (Olivia)
Further simplified the layout test
4 years, 4 months ago (2016-08-11 17:53:46 UTC) #23
Justin Novosad
lgtm https://codereview.chromium.org/2221173003/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html File third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html (right): https://codereview.chromium.org/2221173003/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html#newcode22 third_party/WebKit/LayoutTests/fast/canvas/rendering-contexts-back-references.html:22: ["2d context on html canvas", "2d", "html"], Nit: ...
4 years, 4 months ago (2016-08-11 17:57:14 UTC) #24
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/2221173003/180001
4 years, 4 months ago (2016-08-11 18:14:01 UTC) #27
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/2221173003/200001
4 years, 4 months ago (2016-08-11 19:25:52 UTC) #34
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-11 23:39:49 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 23:43:22 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/903a3a827ddbf8dc46ada202c6768a997860c7bf
Cr-Commit-Position: refs/heads/master@{#411444}

Powered by Google App Engine
This is Rietveld 408576698