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

Unified Diff: cc/surfaces/surface_factory_client.h

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 5 years, 2 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 c2a04af63592d02c18a69a8d1ed29a9811f341e8..e79b18576f469c2c252c776ef88de12448a20d7b 100644
--- a/cc/surfaces/surface_factory_client.h
+++ b/cc/surfaces/surface_factory_client.h
@@ -12,6 +12,9 @@
namespace cc {
+class BeginFrameSource;
+struct SurfaceId;
+
class CC_SURFACES_EXPORT SurfaceFactoryClient {
public:
virtual ~SurfaceFactoryClient() {}
@@ -20,6 +23,15 @@ class CC_SURFACES_EXPORT SurfaceFactoryClient {
virtual void WillDrawSurface(SurfaceId surface_id,
const gfx::Rect& damage_rect) {}
+
+ // This allows the SurfaceFactory to tell it's client what BeginFrameSource
+ // to use for a given surface_id.
+ // If there are multiple active surface_ids, it is the client's
+ // responsibility to pick or distribute the correct BeginFrameSource.
+ // If surface_id is null, then all BeginFrameSources previously
+ // set by this function should be invalidated.
+ virtual void SetBeginFrameSource(SurfaceId surface_id,
+ BeginFrameSource* begin_frame_source) = 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