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

Issue 1917733004: Reland of: Make OffscreenCanvas Transferable (Closed)

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

Description

Reland of: Make OffscreenCanvas Transferable The previous CL is here: https://codereview.chromium.org/1862033002/ Difference: The OffscreenCanvas class is moved from modules/ to core/, which makes this CL much simplier than the previous one. BUG=563845 Committed: https://crrev.com/df4f2a03dc45a80e08d31bf51dab796ed16f7c41 Cr-Commit-Position: refs/heads/master@{#390171}

Patch Set 1 #

Patch Set 2 : works! #

Total comments: 18

Patch Set 3 : address comments #

Patch Set 4 : update layout tests #

Total comments: 2

Patch Set 5 : address all comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable.html View 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/resources/OffscreenCanvas-transferable.js View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h View 1 2 3 4 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 9 chunks +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializationTag.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp View 1 2 3 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Transferables.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (9 generated)
xidachen
junov@: In this CL, we change it such that an offscreenCanvas doesn't hold a WeakMember<HTMLCanvasElement>, ...
4 years, 8 months ago (2016-04-26 19:18:43 UTC) #4
sof
transferables lgtm, this looks a lot better & avoids unnecessary complications by being core/ based. ...
4 years, 8 months ago (2016-04-26 19:37:15 UTC) #5
Justin Novosad
https://codereview.chromium.org/1917733004/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html (right): https://codereview.chromium.org/1917733004/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html#newcode21 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html:21: try { make this simpler and more readable by ...
4 years, 7 months ago (2016-04-26 20:08:32 UTC) #6
xidachen
https://codereview.chromium.org/1917733004/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html (right): https://codereview.chromium.org/1917733004/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html#newcode10 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferable-exceptions.html:10: window.jsTestIsAsync = true; On 2016/04/26 19:37:15, sof wrote: > ...
4 years, 7 months ago (2016-04-26 20:40:59 UTC) #7
Justin Novosad
On 2016/04/26 20:40:59, xidachen wrote: > > Will have another CL that change the word ...
4 years, 7 months ago (2016-04-26 20:50:41 UTC) #8
haraken
This looks much simpler. LGTM on my side.
4 years, 7 months ago (2016-04-27 04:13:19 UTC) #9
sof
https://codereview.chromium.org/1917733004/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h (right): https://codereview.chromium.org/1917733004/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h#newcode472 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h:472: virtual bool tryGetTransferredOffscreenCanvas(uint32_t index, uint32_t width, uint32_t height, uint32_t ...
4 years, 7 months ago (2016-04-27 05:21:04 UTC) #10
Justin Novosad
lgtm core+modules, modulo sof's comments.
4 years, 7 months ago (2016-04-27 14:37:10 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917733004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917733004/80001
4 years, 7 months ago (2016-04-27 16:43:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917733004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917733004/80001
4 years, 7 months ago (2016-04-27 20:36:20 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-27 20:41:53 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:12:41 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/df4f2a03dc45a80e08d31bf51dab796ed16f7c41
Cr-Commit-Position: refs/heads/master@{#390171}

Powered by Google App Engine
This is Rietveld 408576698