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

Issue 1488763002: Start an empty interface OffScreenCanvas (Closed)

Created:
5 years ago by xidachen
Modified:
5 years ago
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create an empty interface OffScreenCanvas This CL creates an interface OffScreenCanvas.idl according to the proposal: https://wiki.whatwg.org/wiki/OffscreenCanvas At this moment, the interface only has a constructor, and its implementation is empty. Also, a layout test is added to verify that the constructor can be successfully called from JS, and verify the object's width&height, together with verifying the constructor's behavior when the argument is invalid. BUG=563819 Committed: https://crrev.com/0f3eb18441ba1c98a8bb7ef8d482b22f682c6968 Cr-Commit-Position: refs/heads/master@{#365095}

Patch Set 1 #

Patch Set 2 : modules/ #

Patch Set 3 : clean up #

Total comments: 1

Patch Set 4 : toBlob enabled in .idl #

Patch Set 5 : empty inteface completed with some conflict #

Patch Set 6 : shrink everything to empty interface/implementation #

Total comments: 6

Patch Set 7 : add width&height #

Total comments: 14

Patch Set 8 : handle unsigned->int potential overflow #

Total comments: 6

Patch Set 9 : better overflow handle and more test cases #

Total comments: 10

Patch Set 10 : better -1 handling and more invalid args test cases #

Total comments: 1

Patch Set 11 : use shouldThrow and fix layout test error #

Patch Set 12 : updating global-interface-listing-expected.txt #

Patch Set 13 : update global-interface-listing-expected.txt #

Patch Set 14 : update global-interface-listing-expected.txt #

Messages

Total messages: 38 (15 generated)
xidachen
This is just a start, please take a look because there was some roadblock. https://codereview.chromium.org/1488763002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DOffScreenCanvas.idl ...
5 years ago (2015-11-30 21:41:04 UTC) #2
xidachen
Hi Justin, The latest patch contains empty interface&implementation, PTAL.
5 years ago (2015-12-03 04:31:01 UTC) #6
Justin Novosad
https://codereview.chromium.org/1488763002/diff/100001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html (right): https://codereview.chromium.org/1488763002/diff/100001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html#newcode4 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html:4: jsTestIsAsync = true; No need for this test to ...
5 years ago (2015-12-03 04:42:58 UTC) #7
xidachen
https://codereview.chromium.org/1488763002/diff/100001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html (right): https://codereview.chromium.org/1488763002/diff/100001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html#newcode4 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html:4: jsTestIsAsync = true; On 2015/12/03 04:42:58, Justin Novosad wrote: ...
5 years ago (2015-12-03 04:54:47 UTC) #9
Justin Novosad
https://codereview.chromium.org/1488763002/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html (right): https://codereview.chromium.org/1488763002/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html#newcode15 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html:15: finishJSTest(); get rid of this line. https://codereview.chromium.org/1488763002/diff/120001/third_party/WebKit/Source/core/html/canvas/OffScreenCanvas.cpp File third_party/WebKit/Source/core/html/canvas/OffScreenCanvas.cpp ...
5 years ago (2015-12-03 05:07:59 UTC) #10
xidachen
https://codereview.chromium.org/1488763002/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html (right): https://codereview.chromium.org/1488763002/diff/120001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html#newcode15 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html:15: finishJSTest(); On 2015/12/03 05:07:59, Justin Novosad wrote: > get ...
5 years ago (2015-12-03 14:16:17 UTC) #11
Justin Novosad
https://codereview.chromium.org/1488763002/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html (right): https://codereview.chromium.org/1488763002/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html#newcode9 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html:9: var setWidth = Math.pow(2, 31); Explain that the overflow ...
5 years ago (2015-12-03 17:05:55 UTC) #12
xidachen
https://codereview.chromium.org/1488763002/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html (right): https://codereview.chromium.org/1488763002/diff/140001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html#newcode9 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html:9: var setWidth = Math.pow(2, 31); On 2015/12/03 17:05:55, Justin ...
5 years ago (2015-12-03 18:41:41 UTC) #13
Justin Novosad
https://codereview.chromium.org/1488763002/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html (right): https://codereview.chromium.org/1488763002/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html#newcode7 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html:7: // responses to the arguments that are larger than ...
5 years ago (2015-12-03 19:06:11 UTC) #14
xidachen
https://codereview.chromium.org/1488763002/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html (right): https://codereview.chromium.org/1488763002/diff/160001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html#newcode7 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html:7: // responses to the arguments that are larger than ...
5 years ago (2015-12-03 20:42:22 UTC) #15
Justin Novosad
On 2015/12/03 20:42:22, xidachen wrote: > The WebIDL: http://www.w3.org/TR/WebIDL/#es-unsigned-long says throw TypeError > only when ...
5 years ago (2015-12-04 04:37:08 UTC) #16
Justin Novosad
lgtm with minor correction https://codereview.chromium.org/1488763002/diff/180001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html File third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html (right): https://codereview.chromium.org/1488763002/diff/180001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html#newcode42 third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html:42: canvas3.width = -1; Use the ...
5 years ago (2015-12-04 04:37:41 UTC) #17
xidachen
On 2015/12/04 04:37:41, Justin Novosad wrote: > lgtm with minor correction > > https://codereview.chromium.org/1488763002/diff/180001/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html > ...
5 years ago (2015-12-04 13:16:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488763002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488763002/180001
5 years ago (2015-12-04 13:19:31 UTC) #20
Justin Novosad
On 2015/12/04 13:16:42, xidachen wrote: > On 2015/12/04 04:37:41, Justin Novosad wrote: > > lgtm ...
5 years ago (2015-12-04 14:16:50 UTC) #22
Justin Novosad
lgtm for realz
5 years ago (2015-12-05 15:10:58 UTC) #24
xidachen
Hi Chris, This is the CL that gets the OffScreenCanvas API started. PTAL.
5 years ago (2015-12-14 14:10:02 UTC) #26
chrishtr
lgtm
5 years ago (2015-12-14 17:40:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488763002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488763002/260001
5 years ago (2015-12-14 17:41:27 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/149500)
5 years ago (2015-12-14 19:35:38 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488763002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488763002/260001
5 years ago (2015-12-14 19:38:29 UTC) #34
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-12-14 20:58:00 UTC) #36
commit-bot: I haz the power
5 years ago (2015-12-14 20:59:27 UTC) #38
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0f3eb18441ba1c98a8bb7ef8d482b22f682c6968
Cr-Commit-Position: refs/heads/master@{#365095}

Powered by Google App Engine
This is Rietveld 408576698