Index: cc/surfaces/surface_factory_client.h |
diff --git a/cc/surfaces/surface_factory_client.h b/cc/surfaces/surface_factory_client.h |
index 9866b279dd6e4f02325af6990b455f37abafb640..169910a3ca85a3585e0fc4e2023e7a4e0de1931a 100644 |
--- a/cc/surfaces/surface_factory_client.h |
+++ b/cc/surfaces/surface_factory_client.h |
@@ -10,11 +10,23 @@ |
namespace cc { |
+class BeginFrameSource; |
+struct SurfaceId; |
+ |
class CC_SURFACES_EXPORT SurfaceFactoryClient { |
public: |
virtual ~SurfaceFactoryClient() {} |
virtual void ReturnResources(const ReturnedResourceArray& resources) = 0; |
+ |
+ // 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. |
brianderson
2015/10/07 20:54:49
Is the contract defined in this comment okay?
I wa
|
+ virtual void SetBeginFrameSource(SurfaceId surface_id, |
+ BeginFrameSource* begin_frame_source) = 0; |
}; |
} // namespace cc |