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

Unified Diff: cc/surfaces/surface_factory_client.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/surface_factory.cc ('k') | cc/surfaces/surface_factory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_factory_client.h
diff --git a/cc/surfaces/surface_factory_client.h b/cc/surfaces/surface_factory_client.h
index 57ecfed1104c32b475f0d5bc2e19b6b927e5c462..bbcf545ba571c2feb08f2310a4bda3b0b3cf1689 100644
--- a/cc/surfaces/surface_factory_client.h
+++ b/cc/surfaces/surface_factory_client.h
@@ -12,24 +12,15 @@
namespace cc {
-class BeginFrameSource;
class SurfaceId;
class CC_SURFACES_EXPORT SurfaceFactoryClient {
public:
- virtual ~SurfaceFactoryClient() {}
+ virtual ~SurfaceFactoryClient() = default;
virtual void ReferencedSurfacesChanged(
const LocalSurfaceId& local_surface_id,
- const std::vector<SurfaceId>* active_referenced_surfaces) {}
-
- virtual void ReturnResources(const ReturnedResourceArray& resources) = 0;
-
- virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id,
- const gfx::Rect& damage_rect) {}
-
- // This allows the SurfaceFactory to pass a BeginFrameSource to use.
- virtual void SetBeginFrameSource(BeginFrameSource* begin_frame_source) = 0;
+ const std::vector<SurfaceId>* active_referenced_surfaces) = 0;
};
} // namespace cc
« no previous file with comments | « cc/surfaces/surface_factory.cc ('k') | cc/surfaces/surface_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698