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

Issue 1919363002: Add createGradient and createPattern to OffscreenCanvas2D in worker (Closed)

Created:
4 years, 8 months ago by xlai (Olivia)
Modified:
4 years, 7 months ago
Reviewers:
haraken, Justin Novosad
CC:
chromium-reviews, 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

Add createGradient and createPattern to OffscreenCanvas2D in worker Implemented more color-related API functions for OffscreenCRC2D. But createPattern() on main thread has not been completed due to crbug.com/563870. BUG=563856 Committed: https://crrev.com/5433e667fc2a2a1e62e969a8d7539081c4dde9c3 Cr-Commit-Position: refs/heads/master@{#390188}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Rebase with master, fix layout test errors #

Total comments: 2

Patch Set 3 : ScriptState #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-2d-gradients-in-worker.html View 1 3 chunks +21 lines, -24 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-2d-gradients-in-worker-expected.html View 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-2d-pattern-in-worker.html View 1 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-2d-pattern-in-worker-expected.html View 1 chunk +27 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 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 2 3 chunks +3 lines, -3 lines 2 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasGradient.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasPattern.idl View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 1 chunk +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
xlai (Olivia)
Maybe we should rename Issue 563856 to "Make CanvasRenderingContext2D renderable in a worker and in ...
4 years, 8 months ago (2016-04-26 19:36:50 UTC) #3
Justin Novosad
https://codereview.chromium.org/1919363002/diff/20001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1919363002/diff/20001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode54 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:54: // TODO(xlai): implement wouldTaintOrigin for OffscreenCanvas2d on main thread ...
4 years, 8 months ago (2016-04-26 19:50:07 UTC) #4
xlai (Olivia)
Rebased with master, fixed layout tests, edited comments based on junov's feedback. https://codereview.chromium.org/1919363002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.idl File third_party/WebKit/Source/modules/canvas2d/CanvasPattern.idl ...
4 years, 8 months ago (2016-04-26 21:45:24 UTC) #5
haraken
https://codereview.chromium.org/1919363002/diff/40001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1919363002/diff/40001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode46 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:46: if (ScriptState::current(v8::Isolate::GetCurrent())->getExecutionContext()->isWorkerGlobalScope()) { ScriptState::current should not be called outside ...
4 years, 8 months ago (2016-04-27 06:30:51 UTC) #7
xlai (Olivia)
Edited based on haraken@'s feedback
4 years, 7 months ago (2016-04-27 19:19:31 UTC) #8
haraken
On 2016/04/27 19:19:31, xlai (Olivia) wrote: > Edited based on haraken@'s feedback LGTM in terms ...
4 years, 7 months ago (2016-04-27 19:26:28 UTC) #9
Justin Novosad
https://codereview.chromium.org/1919363002/diff/60001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp (right): https://codereview.chromium.org/1919363002/diff/60001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp#newcode1055 third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp:1055: if (originClean() && wouldTaintOrigin(imageSource, nullptr)) why no scriptState here? ...
4 years, 7 months ago (2016-04-27 19:32:25 UTC) #10
xlai (Olivia)
https://codereview.chromium.org/1919363002/diff/60001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp (right): https://codereview.chromium.org/1919363002/diff/60001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp#newcode1055 third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp:1055: if (originClean() && wouldTaintOrigin(imageSource, nullptr)) On 2016/04/27 19:32:25, Justin ...
4 years, 7 months ago (2016-04-27 19:47:49 UTC) #11
Justin Novosad
On 2016/04/27 19:47:49, xlai (Olivia) wrote: > https://codereview.chromium.org/1919363002/diff/60001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp > File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp > (right): > > ...
4 years, 7 months ago (2016-04-27 19:49:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919363002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919363002/60001
4 years, 7 months ago (2016-04-27 19:56:44 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-04-27 21:15:43 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:13:13 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5433e667fc2a2a1e62e969a8d7539081c4dde9c3
Cr-Commit-Position: refs/heads/master@{#390188}

Powered by Google App Engine
This is Rietveld 408576698