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

Unified Diff: cc/surfaces/compositor_frame_sink_support.h

Issue 2824053003: Split SurfaceFactoryClient Into Four Interfaces (Closed)
Patch Set: Address Nits Created 3 years, 8 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 | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support.h
diff --git a/cc/surfaces/compositor_frame_sink_support.h b/cc/surfaces/compositor_frame_sink_support.h
index 977acdf9788bf6aab0ede0ab2283f3a44343e7d6..75f5605db733321f462806577b1f61c8e004820c 100644
--- a/cc/surfaces/compositor_frame_sink_support.h
+++ b/cc/surfaces/compositor_frame_sink_support.h
@@ -13,10 +13,12 @@
#include "base/memory/weak_ptr.h"
#include "cc/output/compositor_frame.h"
#include "cc/scheduler/begin_frame_source.h"
+#include "cc/surfaces/framesink_manager_client.h"
#include "cc/surfaces/referenced_surface_tracker.h"
#include "cc/surfaces/surface_factory.h"
#include "cc/surfaces/surface_factory_client.h"
#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_resource_holder_client.h"
#include "cc/surfaces/surfaces_export.h"
namespace cc {
@@ -26,7 +28,9 @@ class SurfaceManager;
class CC_SURFACES_EXPORT CompositorFrameSinkSupport
: public SurfaceFactoryClient,
- public BeginFrameObserver {
+ public BeginFrameObserver,
+ public SurfaceResourceHolderClient,
+ public FrameSinkManagerClient {
public:
static std::unique_ptr<CompositorFrameSinkSupport> Create(
CompositorFrameSinkSupportClient* client,
@@ -52,10 +56,12 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
void ReferencedSurfacesChanged(
const LocalSurfaceId& local_surface_id,
const std::vector<SurfaceId>* active_referenced_surfaces) override;
+
+ // SurfaceResourceHolderClient implementation.
void ReturnResources(const ReturnedResourceArray& resources) override;
+
+ // FrameSinkManagerClient implementation.
void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
- void WillDrawSurface(const LocalSurfaceId& local_surface_id,
- const gfx::Rect& damage_rect) override;
void EvictFrame();
void SetNeedsBeginFrame(bool needs_begin_frame);
@@ -86,6 +92,8 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
void RemoveTopLevelRootReference(const SurfaceId& surface_id);
void DidReceiveCompositorFrameAck();
+ void WillDrawSurface(const LocalSurfaceId& local_surface_id,
+ const gfx::Rect& damage_rect);
// BeginFrameObserver implementation.
void OnBeginFrame(const BeginFrameArgs& args) override;
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698