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

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

Issue 2632273003: Move ReferencedSurfaceTracker into GpuCompositorFrameSink. (Closed)
Patch Set: Fix iterator invalidation. 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
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | 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 89e361812ac5e96fd41d4a9470972da8eea09c69..c2a80bc9888444c2665e20ba68220bfa025fcf44 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.h
@@ -14,6 +14,7 @@
#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
#include "cc/surfaces/compositor_frame_sink_support.h"
#include "cc/surfaces/compositor_frame_sink_support_client.h"
+#include "cc/surfaces/referenced_surface_tracker.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace cc {
@@ -52,10 +53,6 @@ class GpuCompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
void SetNeedsBeginFrame(bool needs_begin_frame) override;
void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id,
cc::CompositorFrame frame) override;
- void AddSurfaceReferences(
- const std::vector<cc::SurfaceReference>& references) override;
- void RemoveSurfaceReferences(
- const std::vector<cc::SurfaceReference>& references) override;
void Require(const cc::LocalFrameId& local_frame_id,
const cc::SurfaceSequence& sequence) override;
void Satisfy(const cc::SurfaceSequence& sequence) override;
@@ -85,6 +82,10 @@ class GpuCompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
cc::CompositorFrameSinkSupport support_;
+ // Track the surface references for the surface corresponding to this
+ // compositor frame sink.
+ cc::ReferencedSurfaceTracker surface_tracker_;
+
bool client_connection_lost_ = false;
bool private_connection_lost_ = false;
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698