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

Issue 1748163003: Add rendering context and rendering 2D context to OffscreenCanvas (Closed)

Created:
4 years, 9 months ago by xlai (Olivia)
Modified:
4 years, 9 months ago
Reviewers:
haraken, Justin Novosad
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, 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 rendering context and rendering 2D context to OffscreenCanvas This patch implements the getContext() function in OffscreenCanvas. It also implements the skeleton of OffscreenCanvasRenderingContext2D, an object type returned by getContext("2d"). BUG=563826 Committed: https://crrev.com/a9fbf504f0677ae17f568914138d7709aa72c126 Cr-Commit-Position: refs/heads/master@{#379740}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Remove CanvasRenderingContextBase #

Total comments: 15

Patch Set 3 : Move everything to modules #

Patch Set 4 : Make new classes GarbageCollected and Fix IDL inheritance binding issue #

Patch Set 5 : Coding style nits and Adding OWNERS #

Patch Set 6 : Remove OCRC.idl and Make it a UnionType #

Total comments: 3

Patch Set 7 : Changes based on Haraken's feedback #

Patch Set 8 : Rebase with master and fix merge conflicts #

Total comments: 9

Patch Set 9 : Add the new interface to global interface listings' expected output #

Patch Set 10 : Upload based on an even lower similarity threshold (20) #

Patch Set 11 : Make OffscreenCanvasRenderingContext Modules exportable" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -221 lines) Patch
D third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor.html View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor-expected.txt View 1 chunk +0 lines, -13 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker.html View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -27 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -5 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 5 6 7 8 1 chunk +13 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 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +13 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 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.h View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.cpp View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.idl View 1 2 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/InitModules.cpp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +61 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -24 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -7 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -21 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas2d/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
A third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +80 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
xlai (Olivia)
Adding a function getContext to OffscreenCanvas. In core/, the newly added OffscreenCanvasRenderingContext will share some ...
4 years, 9 months ago (2016-03-01 22:35:43 UTC) #4
Justin Novosad
To start, I have a high level comment. Please take care of that first, then ...
4 years, 9 months ago (2016-03-01 23:05:57 UTC) #5
xlai (Olivia)
4 years, 9 months ago (2016-03-02 14:45:55 UTC) #6
Justin Novosad
Awesome work! Really happy to see this taking form. https://codereview.chromium.org/1748163003/diff/30001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html (right): https://codereview.chromium.org/1748163003/diff/30001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html#newcode15 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html:15: ...
4 years, 9 months ago (2016-03-02 15:41:50 UTC) #7
xlai (Olivia)
@junov: Move everything to modules/ folder. Would it be better if I create OWNERS file ...
4 years, 9 months ago (2016-03-03 22:50:07 UTC) #8
Justin Novosad
After you pointed out that HTMLCanvasElement.getContext() did not conform to the spec's IDL for the ...
4 years, 9 months ago (2016-03-04 06:04:45 UTC) #11
xlai (Olivia)
junov@: I've made use of typedef in OffscreenCanvas.idl; as a result, OCRC.idl is no longer ...
4 years, 9 months ago (2016-03-04 16:11:49 UTC) #12
haraken
LGTM. I just reviewed the CL from the implementation perspective. Please wait for junov's approval. ...
4 years, 9 months ago (2016-03-04 16:22:15 UTC) #13
xlai (Olivia)
Summary of latest changes: Corrections based on Haraken's feedback and Rebase with master. https://codereview.chromium.org/1748163003/diff/110001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h File ...
4 years, 9 months ago (2016-03-06 22:47:36 UTC) #14
Justin Novosad
https://codereview.chromium.org/1748163003/diff/150001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker.html (right): https://codereview.chromium.org/1748163003/diff/150001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker.html#newcode32 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D-in-worker.html:32: switch (msg.data.outcome) { This test is more complex than ...
4 years, 9 months ago (2016-03-07 15:30:27 UTC) #15
xlai (Olivia)
Summary of changes: - Layout Tests: changed according to feedback - typedef name change to ...
4 years, 9 months ago (2016-03-07 19:47:57 UTC) #16
Justin Novosad
lgtm
4 years, 9 months ago (2016-03-07 19:59:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748163003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748163003/210001
4 years, 9 months ago (2016-03-07 23:41:56 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/156183)
4 years, 9 months ago (2016-03-08 00:23:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748163003/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748163003/230001
4 years, 9 months ago (2016-03-08 01:43:38 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:230001)
4 years, 9 months ago (2016-03-08 04:41:11 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 04:43:45 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/a9fbf504f0677ae17f568914138d7709aa72c126
Cr-Commit-Position: refs/heads/master@{#379740}

Powered by Google App Engine
This is Rietveld 408576698