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

Issue 2359723003: Implement OffscreenCanvas Accelerated 2D commit() (Closed)

Created:
4 years, 3 months ago by xlai (Olivia)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, haraken, Rik, f(malita), blink-reviews, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement OffscreenCanvas Accelerated 2D commit() This CL makes commit() on accelerated 2d context on OffscreenCanvas work. BUG=563852 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/971faed800d30243b9ff37e5dbdfe3d55209d4ad Cr-Commit-Position: refs/heads/master@{#420785}

Patch Set 1 #

Patch Set 2 : unaccelerated case #

Patch Set 3 : Give up unaccelerated case #

Patch Set 4 : Test #

Patch Set 5 : Temporary code for Unaccelerated case #

Total comments: 7

Patch Set 6 : Correct test #

Patch Set 7 : Fix #

Total comments: 12

Patch Set 8 : fix #

Total comments: 4

Patch Set 9 : remove isAccelerated() #

Total comments: 1

Patch Set 10 : Nits #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Fix rebase error #

Messages

Total messages: 33 (17 generated)
xlai (Olivia)
PTAL. Most of the code is just reuse of existing webgl rendering context commit(), except ...
4 years, 2 months ago (2016-09-22 16:12:24 UTC) #6
Justin Novosad
https://codereview.chromium.org/2359723003/diff/80001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcher.h File third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcher.h (right): https://codereview.chromium.org/2359723003/diff/80001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcher.h#newcode19 third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcher.h:19: virtual void dispatchFrame(RefPtr<StaticBitmapImage>, bool isAccelerated) = 0; You should ...
4 years, 2 months ago (2016-09-22 18:06:19 UTC) #7
xlai (Olivia)
-kbr from reviewers because there is no more change to Webgl now. Fixed according to ...
4 years, 2 months ago (2016-09-22 18:51:50 UTC) #10
xlai (Olivia)
Adding kbr@ back to reviewers because the addition to GPU pixel tests need to be ...
4 years, 2 months ago (2016-09-22 18:53:43 UTC) #12
xidachen
https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html File content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html (right): https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html#newcode11 content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html:11: <title>OffscreenCanvas 2d commit flow on main thread: green square ...
4 years, 2 months ago (2016-09-22 19:05:55 UTC) #13
Justin Novosad
https://codereview.chromium.org/2359723003/diff/120001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/2359723003/diff/120001/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode57 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:57: DCHECK(image->isTextureBacked() == this->isAccelerated()); Why this DCHECK? If for some ...
4 years, 2 months ago (2016-09-22 19:27:39 UTC) #14
xlai (Olivia)
https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html File content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html (right): https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html#newcode11 content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_main.html:11: <title>OffscreenCanvas 2d commit flow on main thread: green square ...
4 years, 2 months ago (2016-09-22 19:36:18 UTC) #16
xidachen
https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html File content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html (right): https://codereview.chromium.org/2359723003/diff/120001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html#newcode2 content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html:2: On 2016/09/22 19:36:18, xlai (Olivia) wrote: > Not really. ...
4 years, 2 months ago (2016-09-22 19:42:34 UTC) #17
xlai (Olivia)
https://codereview.chromium.org/2359723003/diff/160001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html File content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html (right): https://codereview.chromium.org/2359723003/diff/160001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html#newcode23 content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html:23: offscreen2d.commit(); On 2016/09/22 19:42:33, xidachen wrote: > As discussed ...
4 years, 2 months ago (2016-09-22 19:53:51 UTC) #18
xidachen
lgtm
4 years, 2 months ago (2016-09-22 20:20:34 UTC) #19
Justin Novosad
lgtm 2
4 years, 2 months ago (2016-09-22 20:35:37 UTC) #20
Ken Russell (switch to Gerrit)
LGTM with caveat about the test. https://codereview.chromium.org/2359723003/diff/180001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html File content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html (right): https://codereview.chromium.org/2359723003/diff/180001/content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html#newcode24 content/test/data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html:24: self.postMessage(""); I think ...
4 years, 2 months ago (2016-09-22 22:47:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359723003/240001
4 years, 2 months ago (2016-09-23 19:19:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359723003/260001
4 years, 2 months ago (2016-09-23 19:27:49 UTC) #29
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 2 months ago (2016-09-23 23:33:43 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 23:35:45 UTC) #33
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/971faed800d30243b9ff37e5dbdfe3d55209d4ad
Cr-Commit-Position: refs/heads/master@{#420785}

Powered by Google App Engine
This is Rietveld 408576698