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

Unified Diff: services/ui/surfaces/gpu_compositor_frame_sink.h

Issue 2527203002: Mus: GpuCompositorFrameSink uses WeakPtrFactory (Closed)
Patch Set: Created 4 years, 1 month 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 | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/gpu_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.h b/services/ui/surfaces/gpu_compositor_frame_sink.h
index 1a1422ddb53856036676ae525d8940899f000b8c..f32b9f7da9a9f5bfbcbf96c7596dd057a6d0fd81 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "cc/ipc/compositor_frame.mojom.h"
#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
#include "cc/output/context_provider.h"
@@ -129,6 +130,8 @@ class GpuCompositorFrameSink : public cc::mojom::MojoCompositorFrameSink,
mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_;
mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_;
+ base::WeakPtrFactory<GpuCompositorFrameSink> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
};
« no previous file with comments | « no previous file | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698