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

Unified Diff: content/renderer/mus/renderer_window_tree_client.h

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/mus/renderer_window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/renderer_window_tree_client.h
diff --git a/content/renderer/mus/renderer_window_tree_client.h b/content/renderer/mus/renderer_window_tree_client.h
index 982e6acfdd7d571a6e5e4ce376bb5c841c862d22..c6f3ae40fcc11aad081384075c7dbe96a157b5e7 100644
--- a/content/renderer/mus/renderer_window_tree_client.h
+++ b/content/renderer/mus/renderer_window_tree_client.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/common/types.h"
+#include "services/ui/public/cpp/client_compositor_frame_sink.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
namespace cc {
@@ -38,6 +39,10 @@ class RendererWindowTreeClient : public ui::mojom::WindowTreeClient {
// nullptr if none exists.
static RendererWindowTreeClient* Get(int routing_id);
+ const cc::LocalSurfaceId& local_surface_id() const {
+ return current_local_surface_id_;
+ }
+
void Bind(ui::mojom::WindowTreeClientRequest request);
using CompositorFrameSinkCallback =
@@ -148,6 +153,10 @@ class RendererWindowTreeClient : public ui::mojom::WindowTreeClient {
bool success,
uint32_t action_taken) override;
void OnDragDropDone() override;
+ void OnSetWindowBoundsResponse(
+ uint32_t change_id,
+ const gfx::Rect& bounds,
+ const cc::LocalSurfaceId& local_surface_id) override;
void OnChangeCompleted(uint32_t change_id, bool success) override;
void RequestClose(uint32_t window_id) override;
void GetWindowManager(
@@ -161,6 +170,7 @@ class RendererWindowTreeClient : public ui::mojom::WindowTreeClient {
gpu::GpuMemoryBufferManager* pending_gpu_memory_buffer_manager_ = nullptr;
CompositorFrameSinkCallback pending_compositor_frame_sink_callback_;
ui::mojom::WindowTreePtr tree_;
+ cc::LocalSurfaceId current_local_surface_id_;
mojo::Binding<ui::mojom::WindowTreeClient> binding_;
DISALLOW_COPY_AND_ASSIGN(RendererWindowTreeClient);
« no previous file with comments | « no previous file | content/renderer/mus/renderer_window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698