cc: Take in LocalSurfaceId with a new size for LayerTreeHost.
Specify a new LocalSurfaceId when changing the size of the LayerTreeHost.
In case a new LocalSurfaceId is not already available, it is reset to an
invalid id, so that commits are deferred until a valid id is available
(the renderer gets this id from the browser, the browser receives this
id from mus (when running with mus)).
BUG=733694
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: If73bce29747cc60379630377e7e74953e02f3f9f
Reviewed-on: https://chromium-review.googlesource.com/606507
Commit-Queue: Sadrul Chowdhury <[email protected]>
Reviewed-by: Fady Samuel <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#493222}
diff --git a/content/renderer/gpu/render_widget_compositor.h b/content/renderer/gpu/render_widget_compositor.h
index cfaa25e..cdcd003 100644
--- a/content/renderer/gpu/render_widget_compositor.h
+++ b/content/renderer/gpu/render_widget_compositor.h
@@ -118,8 +118,8 @@
void SetRasterColorSpace(const gfx::ColorSpace& color_space);
void SetIsForOopif(bool is_for_oopif);
void SetContentSourceId(uint32_t source_id);
- void SetLocalSurfaceId(const viz::LocalSurfaceId& local_surface_id);
- void SetViewportSize(const gfx::Size& device_viewport_size);
+ void SetViewportSize(const gfx::Size& device_viewport_size,
+ const viz::LocalSurfaceId& local_surface_id);
// WebLayerTreeView implementation.
viz::FrameSinkId GetFrameSinkId() override;