| 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
|
|
|