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

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed)

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

Description

Make OffscreenCanvasRenderingContext2D renderable on a worker This change makes 2D contexts renderable on workers. It only implements the bare minimum interfaces required to draw rectangles on a worker and bring the results to screen via ImageBitmap transfer. The new Web APIs that are implemented are: * OffscreenCanvasRendering2D.fillStyle * OffscreenCanvasRendering2D.strokeStyle * OffscreenCanvasRendering2D.fillRect * OffscreenCanvasRendering2D.strokeRect * OffscreenCanvasRendering2D.clearRect * OffscreenCanvas.transferToImageBitmap BUG=563856, 563832 Committed: https://crrev.com/3e81032f06d758c0e79fec2158f1b928f3487036 Cr-Commit-Position: refs/heads/master@{#381085}

Patch Set 1 #

Patch Set 2 : fix non-oilpan build #

Total comments: 1

Patch Set 3 : keep filter stuff for later #

Patch Set 4 : Fixes and tests for transferToImageBitmap #

Total comments: 5

Patch Set 5 : fixed nits #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -37 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker.html View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker-expected.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-currentColor.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-currentColor-expected.txt View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker-expected.html View 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-strokeRect-in-worker.html View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-strokeRect-in-worker-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferToImageBitmap.html View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferToImageBitmap-expected.txt View 1 2 3 4 5 1 chunk +16 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 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp View 1 2 3 4 5 4 chunks +25 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 3 4 5 3 chunks +51 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (10 generated)
Justin Novosad
PTAL. We are producing pixels in a worker, and bringing them to display. Yay!
4 years, 9 months ago (2016-03-08 21:43:21 UTC) #3
Stephen White
https://codereview.chromium.org/1775153002/diff/20001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h (right): https://codereview.chromium.org/1775153002/diff/20001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h#newcode159 third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h:159: virtual void updateFilterReferences(const FilterOperations& filters) { } Could these ...
4 years, 9 months ago (2016-03-08 22:46:33 UTC) #5
Justin Novosad
On 2016/03/08 22:46:33, Stephen White wrote: > https://codereview.chromium.org/1775153002/diff/20001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h > File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h > (right): > > ...
4 years, 9 months ago (2016-03-08 22:49:55 UTC) #6
Justin Novosad
new patch
4 years, 9 months ago (2016-03-09 18:32:07 UTC) #7
Stephen White
Awesome! \o/ Just a few nits. https://codereview.chromium.org/1775153002/diff/60001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker.html (right): https://codereview.chromium.org/1775153002/diff/60001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker.html#newcode6 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-clearRect-in-worker.html:6: <script id="myWorker" type="text/worker"> ...
4 years, 9 months ago (2016-03-09 18:54:07 UTC) #9
Stephen White
LGTM
4 years, 9 months ago (2016-03-10 18:52:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775153002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775153002/80001
4 years, 9 months ago (2016-03-10 18:52:53 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/143213) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-10 18:56:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775153002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775153002/100001
4 years, 9 months ago (2016-03-14 20:39:12 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-14 22:10:28 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 22:11:31 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3e81032f06d758c0e79fec2158f1b928f3487036
Cr-Commit-Position: refs/heads/master@{#381085}

Powered by Google App Engine
This is Rietveld 408576698