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

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)

Created:
4 years ago by Justin Novosad
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, kinuko+watch, rwlbuis, krit, drott+blinkwatch_chromium.org, blink-reviews-html_chromium.org, jam, dglazkov+blink, Rik, darin-cc_chromium.org, blink-reviews, ajuma+watch_chromium.org, blink-worker-reviews_chromium.org, jbroman, pdr+graphicswatchlist_chromium.org, haraken, piman+watch_chromium.org, Stephen Chennney, ajuma+watch-canvas_chromium.org, f(malita), danakj+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementing promise-based commit for driving OffscreenCanvas animations This is an experimental prototype API for demonstrating a proposal to use promises instead of requestAnimationFrame for driving animations. This initial implementation uses a delayed task to simulate the BeginFrame signal. Properly hooking-up BeginFrame will be solved in a follow-up code change. This API was discussed here: https://github.com/whatwg/html/issues/2139 BUG=676131 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2594843002 Cr-Commit-Position: refs/heads/master@{#441711} Committed: https://chromium.googlesource.com/chromium/src/+/d59fe166058d3a4c3f2d44ef5c76b0076315f16e

Patch Set 1 #

Patch Set 2 : test fix #

Total comments: 8

Patch Set 3 : fix pixel tests #

Patch Set 4 : apply senorblanco feedback #

Total comments: 8

Patch Set 5 : applied xlai feedback #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -147 lines) Patch
M content/test/data/gpu/pixel_offscreenCanvas_2d_commit_main.html View 1 2 3 4 5 2 chunks +36 lines, -23 lines 0 comments Download
M content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html View 1 2 3 4 5 2 chunks +33 lines, -13 lines 0 comments Download
M content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_worker.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_main.html View 1 2 3 4 5 3 chunks +24 lines, -11 lines 0 comments Download
M content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html View 1 2 3 4 5 3 chunks +26 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-invalid-call.html View 3 chunks +14 lines, -21 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-promise.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h View 1 2 3 4 5 chunks +23 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 2 3 4 3 chunks +54 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 3 4 5 4 chunks +14 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 chunks +20 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcher.h View 3 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h View 1 2 3 4 5 2 chunks +13 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 3 4 5 6 chunks +45 lines, -6 lines 0 comments Download

Messages

Total messages: 50 (31 generated)
Justin Novosad
PTAL
4 years ago (2016-12-20 22:31:04 UTC) #4
Justin Novosad
FYI: the gpu pixel test results should remain unchanged, which is why I did not ...
4 years ago (2016-12-20 22:32:38 UTC) #6
Stephen White
LGTM w/nits https://codereview.chromium.org/2594843002/diff/20001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc File content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc (right): https://codereview.chromium.org/2594843002/diff/20001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc#newcode31 content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc:31: // TODO(crbug.com/): Pass a valid display so ...
4 years ago (2016-12-21 15:14:43 UTC) #11
xlai (Olivia)
https://codereview.chromium.org/2594843002/diff/20001/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h (right): https://codereview.chromium.org/2594843002/diff/20001/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h#newcode160 third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h:160: // cc::FrameSinkId is broken into two integer components as ...
4 years ago (2016-12-21 19:54:26 UTC) #18
Justin Novosad
https://codereview.chromium.org/2594843002/diff/20001/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h (right): https://codereview.chromium.org/2594843002/diff/20001/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h#newcode160 third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h:160: // cc::FrameSinkId is broken into two integer components as ...
4 years ago (2016-12-21 21:15:40 UTC) #21
xlai (Olivia)
lgtm
4 years ago (2016-12-22 02:28:05 UTC) #24
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/2594843002/80001
4 years ago (2016-12-22 14:37:27 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/331618)
4 years ago (2016-12-22 14:44:00 UTC) #29
Justin Novosad
+kbr for webgl owners
4 years ago (2016-12-22 15:04:50 UTC) #31
Ken Russell (switch to Gerrit)
Sorry for the long delay reviewing. In the future please feel free to ask zmo@ ...
3 years, 11 months ago (2017-01-04 02:41:35 UTC) #32
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/2594843002/80001
3 years, 11 months ago (2017-01-04 20:23:36 UTC) #34
Justin Novosad
On 2017/01/04 02:41:35, Ken Russell wrote: > LGTM. Would like to re-evaluate this after more ...
3 years, 11 months ago (2017-01-04 20:24:39 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/364707)
3 years, 11 months ago (2017-01-04 23:40:35 UTC) #37
Ken Russell (switch to Gerrit)
On 2017/01/04 23:40:35, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-05 02:30:41 UTC) #38
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/2594843002/80001
3 years, 11 months ago (2017-01-05 02:31:22 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/335209) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 11 months ago (2017-01-05 02:40:55 UTC) #42
Ken Russell (switch to Gerrit)
On 2017/01/05 02:40:55, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-05 02:42:28 UTC) #43
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/2594843002/100001
3 years, 11 months ago (2017-01-05 16:37:20 UTC) #46
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 18:46:10 UTC) #50
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/d59fe166058d3a4c3f2d44ef5c76...

Powered by Google App Engine
This is Rietveld 408576698