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

Issue 1836283002: Implement HTMLCanvasElement's transferControlToOffscreen (Closed)

Created:
4 years, 8 months ago by xidachen
Modified:
4 years, 8 months ago
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

Implement HTMLCanvasElement's transferControlToOffscreen To summarize, this function throws an exception when the canvas has an associated context. A new OffscreenCanvas is created and it has a pointer pointing to the originated canvas element. A layout test is also added to make sure that there is no exception when the original canvas doesn't have a context, and throws an exception when the canvas does have a context. BUG=598753 Committed: https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924 Cr-Commit-Position: refs/heads/master@{#384627}

Patch Set 1 #

Total comments: 6

Patch Set 2 : add unit test #

Total comments: 1

Patch Set 3 : move unit test to HTMLCanvasElementModuleTest #

Patch Set 4 : add the file #

Total comments: 4

Patch Set 5 : update interface layout tests result #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html View 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
xidachen
PTAL
4 years, 8 months ago (2016-03-29 19:33:22 UTC) #2
Justin Novosad
https://codereview.chromium.org/1836283002/diff/1/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp File third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp (right): https://codereview.chromium.org/1836283002/diff/1/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp#newcode23 third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp:23: exceptionState.throwDOMException(InvalidStateError, "Cannot transfer control from a canvas with context"); ...
4 years, 8 months ago (2016-03-29 20:32:58 UTC) #3
xidachen
PTAL. https://codereview.chromium.org/1836283002/diff/1/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp File third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp (right): https://codereview.chromium.org/1836283002/diff/1/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp#newcode23 third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp:23: exceptionState.throwDOMException(InvalidStateError, "Cannot transfer control from a canvas with ...
4 years, 8 months ago (2016-03-30 13:32:30 UTC) #4
Justin Novosad
https://codereview.chromium.org/1836283002/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp (right): https://codereview.chromium.org/1836283002/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp#newcode724 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp:724: TEST_F(CanvasRenderingContext2DTest, TransferControlToOffscreen) Good test, but wrong place for it. ...
4 years, 8 months ago (2016-03-30 19:51:06 UTC) #5
xidachen
PTAL
4 years, 8 months ago (2016-03-31 13:35:57 UTC) #6
Justin Novosad
lgtm
4 years, 8 months ago (2016-03-31 19:53:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836283002/60001
4 years, 8 months ago (2016-03-31 19:55:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/162880)
4 years, 8 months ago (2016-03-31 20:13:31 UTC) #11
xidachen
haraken@: The bot is complaining that this CL is missing LGTM from an owner of ...
4 years, 8 months ago (2016-03-31 20:39:45 UTC) #13
haraken
https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h File third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h (right): https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h#newcode57 third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h:57: WeakMember<HTMLCanvasElement> m_canvas; Would you elaborate on why this is ...
4 years, 8 months ago (2016-03-31 23:24:24 UTC) #14
xidachen
On 2016/03/31 23:24:24, haraken wrote: > https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h > File third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h > (right): > > https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h#newcode57 ...
4 years, 8 months ago (2016-04-01 00:01:02 UTC) #17
haraken
On 2016/04/01 00:01:02, xidachen wrote: > On 2016/03/31 23:24:24, haraken wrote: > > > https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h ...
4 years, 8 months ago (2016-04-01 00:03:45 UTC) #18
xidachen
On 2016/04/01 00:03:45, haraken wrote: > On 2016/04/01 00:01:02, xidachen wrote: > > On 2016/03/31 ...
4 years, 8 months ago (2016-04-01 00:09:38 UTC) #19
Justin Novosad
On 2016/04/01 00:09:38, xidachen wrote: > I believe that OffscreenCanvas should not outlive its associated ...
4 years, 8 months ago (2016-04-01 14:17:05 UTC) #20
haraken
On 2016/04/01 14:17:05, Justin Novosad wrote: > On 2016/04/01 00:09:38, xidachen wrote: > > > ...
4 years, 8 months ago (2016-04-01 14:28:44 UTC) #21
xidachen
https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h File third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h (right): https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h#newcode43 third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h:43: HTMLCanvasElement* getAssociatedCanvas() const { return m_canvas; } On 2016/04/01 ...
4 years, 8 months ago (2016-04-01 14:46:02 UTC) #22
haraken
Makes sense. LGTM. https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h File third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h (right): https://codereview.chromium.org/1836283002/diff/60001/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h#newcode43 third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h:43: HTMLCanvasElement* getAssociatedCanvas() const { return m_canvas; ...
4 years, 8 months ago (2016-04-01 14:57:56 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836283002/80001
4 years, 8 months ago (2016-04-01 15:32:11 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836283002/80001
4 years, 8 months ago (2016-04-01 16:16:47 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-01 17:59:52 UTC) #31
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 18:01:14 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924
Cr-Commit-Position: refs/heads/master@{#384627}

Powered by Google App Engine
This is Rietveld 408576698