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

Unified Diff: components/exo/compositor_frame_sink.cc

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: Use MakeUnique Created 3 years, 11 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: components/exo/compositor_frame_sink.cc
diff --git a/components/exo/compositor_frame_sink.cc b/components/exo/compositor_frame_sink.cc
index c49758a40667eb45d6afb09dccdbd76803fbb5ef..71d9612cb01eb3c8004c8c5ef84e09b1940f201a 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -18,10 +18,12 @@ namespace exo {
CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
cc::SurfaceManager* surface_manager,
CompositorFrameSinkHolder* client)
- : support_(this, surface_manager, frame_sink_id, nullptr, nullptr),
+ : support_(this, surface_manager, frame_sink_id, nullptr),
client_(client) {}
-CompositorFrameSink::~CompositorFrameSink() {}
+CompositorFrameSink::~CompositorFrameSink() {
+ support_.InvalidateFrameSinkId();
Fady Samuel 2017/01/23 21:56:12 Why is this necessary? support should do this auto
+}
////////////////////////////////////////////////////////////////////////////////
// cc::mojom::MojoCompositorFrameSink overrides:

Powered by Google App Engine
This is Rietveld 408576698