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

Issue 2588053003: Make OffscreenCanvas resizable (Closed)

Created:
4 years ago by xlai (Olivia)
Modified:
4 years ago
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, 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

Make OffscreenCanvas resizable When OffscreenCanvas's width or height is changed, we reshape the OffscreenCanvasFrameDispatcher's size and mark m_changeSizeForNextCommit as true. In the next incoming commit(), OffscreenCanvasFrameDispatcher picks up the new size and generate new LocalFrameId. On browser side, Surface will be re-created once a different LocalFrameId is received (all is handled in CompositorFrameSinkSupport), prompting OffscreenCanvasSurfaceImpl to send OnSurfaceCreated message back to CanvasSurfaceLayerBridge, which will then change the SurfaceInfo in the existing SurfaceLayer. BUG=662498 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel Committed: https://crrev.com/cfc7fa46621dc8a79511c60cb8cb5bfb3e412031 Cr-Commit-Position: refs/heads/master@{#440150}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Total comments: 11

Patch Set 3 : rebase and fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : remove redundant width and height #

Patch Set 7 : rebase #

Messages

Total messages: 34 (22 generated)
Fady Samuel
https://codereview.chromium.org/2588053003/diff/1/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp File third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp (right): https://codereview.chromium.org/2588053003/diff/1/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp#newcode116 third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp:116: surfaceLayer->SetSurfaceInfo(info, true); I think you also need to update ...
4 years ago (2016-12-19 20:12:40 UTC) #2
xlai (Olivia)
junov@: PTAL at the code. kbr@: PTAL at the gpu pixel test. fsamuel@: FYI for ...
4 years ago (2016-12-19 22:30:15 UTC) #7
Ken Russell (switch to Gerrit)
The pixel tests basically lgtm. A few comments. https://codereview.chromium.org/2588053003/diff/20001/content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html File content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html (right): https://codereview.chromium.org/2588053003/diff/20001/content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html#newcode1 content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html:1: <!DOCTYPE ...
4 years ago (2016-12-20 06:01:24 UTC) #8
Justin Novosad
lgtm. Deferring to Fady for review of compositor interactions.
4 years ago (2016-12-20 16:44:54 UTC) #9
xlai (Olivia)
https://codereview.chromium.org/2588053003/diff/20001/content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html File content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html (right): https://codereview.chromium.org/2588053003/diff/20001/content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html#newcode1 content/test/data/gpu/pixel_offscreenCanvas_2d_resize.html:1: <!DOCTYPE HTML> On 2016/12/20 06:01:24, Ken Russell wrote: > ...
4 years ago (2016-12-20 18:13:39 UTC) #10
Fady Samuel
lgtm
4 years ago (2016-12-20 18:45:13 UTC) #11
Justin Novosad
Tests look great. lgtm with clean-up of width/height args that are no longer used. https://codereview.chromium.org/2588053003/diff/80001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ...
4 years ago (2016-12-20 22:06:09 UTC) #12
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/2588053003/100001
4 years ago (2016-12-21 01:05:58 UTC) #20
commit-bot: I haz the power
Failed to apply patch for content/test/gpu/gpu_tests/pixel_expectations.py: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-21 01:12:47 UTC) #22
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/2588053003/120001
4 years ago (2016-12-21 18:03:38 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-21 18:09:13 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-21 18:10:51 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cfc7fa46621dc8a79511c60cb8cb5bfb3e412031
Cr-Commit-Position: refs/heads/master@{#440150}

Powered by Google App Engine
This is Rietveld 408576698