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

Unified Diff: services/ui/public/cpp/client_compositor_frame_sink.h

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Rebase Created 3 years, 7 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
Index: services/ui/public/cpp/client_compositor_frame_sink.h
diff --git a/services/ui/public/cpp/client_compositor_frame_sink.h b/services/ui/public/cpp/client_compositor_frame_sink.h
index 889cfa46697fc8410f43589a31fb2f785b570f2a..41930b1656d7daaa9e36f1cf4f6a63fbedc92746 100644
--- a/services/ui/public/cpp/client_compositor_frame_sink.h
+++ b/services/ui/public/cpp/client_compositor_frame_sink.h
@@ -5,6 +5,7 @@
#ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_
#define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_
+#include "base/callback.h"
#include "base/macros.h"
#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
#include "cc/output/compositor_frame_sink.h"
@@ -33,6 +34,11 @@ class ClientCompositorFrameSink
~ClientCompositorFrameSink() override;
+ using SurfaceChangedCallback =
+ base::Callback<void(const cc::LocalSurfaceId&, const gfx::Size&)>;
+ // Set a callback which will be called when the surface is changed.
+ void SetSurfaceChangedCallback(const SurfaceChangedCallback& callback);
Fady Samuel 2017/05/18 16:48:50 This is fundamentally not compatible with surface
Peng 2017/05/18 19:37:59 Done.
+
// cc::CompositorFrameSink implementation.
bool BindToClient(cc::CompositorFrameSinkClient* client) override;
void DetachFromClient() override;
@@ -68,6 +74,7 @@ class ClientCompositorFrameSink
client_binding_;
std::unique_ptr<base::ThreadChecker> thread_checker_;
const bool enable_surface_synchronization_;
+ SurfaceChangedCallback surface_changed_callback_;
DISALLOW_COPY_AND_ASSIGN(ClientCompositorFrameSink);
};
« no previous file with comments | « no previous file | services/ui/public/cpp/client_compositor_frame_sink.cc » ('j') | services/ui/public/interfaces/window_tree.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698