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

Unified Diff: components/viz/client/client_compositor_frame_sink.h

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Fix build problem Created 3 years, 6 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 | « components/exo/surface.cc ('k') | components/viz/client/client_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/client/client_compositor_frame_sink.h
diff --git a/components/viz/client/client_compositor_frame_sink.h b/components/viz/client/client_compositor_frame_sink.h
index 236767c2ef7b37753c984f93fbcaa3b95c787362..25a6dd6fa51f6da70e1a30284806e6701db58210 100644
--- a/components/viz/client/client_compositor_frame_sink.h
+++ b/components/viz/client/client_compositor_frame_sink.h
@@ -6,6 +6,7 @@
#define COMPONENTS_VIZ_CLIENT_CLIENT_COMPOSITOR_FRAME_SINK_H_
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
#include "cc/output/compositor_frame_sink.h"
#include "cc/output/context_provider.h"
@@ -46,6 +47,8 @@ class ClientCompositorFrameSink
~ClientCompositorFrameSink() override;
+ base::WeakPtr<ClientCompositorFrameSink> GetWeakPtr();
+
// cc::CompositorFrameSink implementation.
bool BindToClient(cc::CompositorFrameSinkClient* client) override;
void DetachFromClient() override;
@@ -74,6 +77,8 @@ class ClientCompositorFrameSink
THREAD_CHECKER(thread_checker_);
const bool enable_surface_synchronization_;
+ base::WeakPtrFactory<ClientCompositorFrameSink> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ClientCompositorFrameSink);
};
« no previous file with comments | « components/exo/surface.cc ('k') | components/viz/client/client_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698