DescriptionMake 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)
|