| Index: cc/surfaces/surface_factory.h
|
| diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h
|
| index 5af8d2e0eb760ef0c80739d17630f2645c29cb93..ccc259a996496fc3ba6ef79c47f1688a6b7bd0f7 100644
|
| --- a/cc/surfaces/surface_factory.h
|
| +++ b/cc/surfaces/surface_factory.h
|
| @@ -22,6 +22,7 @@ class Size;
|
| }
|
|
|
| namespace cc {
|
| +class BeginFrameSource;
|
| class CopyOutputRequest;
|
| class Surface;
|
| class SurfaceFactoryClient;
|
| @@ -45,6 +46,10 @@ class CC_SURFACES_EXPORT SurfaceFactory
|
| void Create(SurfaceId surface_id);
|
| void Destroy(SurfaceId surface_id);
|
| void DestroyAll();
|
| +
|
| + void SetBeginFrameSource(SurfaceId surface_id,
|
| + BeginFrameSource* begin_frame_source);
|
| +
|
| // A frame can only be submitted to a surface created by this factory,
|
| // although the frame may reference surfaces created by other factories.
|
| // The callback is called the first time this frame is used to draw, or if
|
| @@ -80,6 +85,8 @@ class CC_SURFACES_EXPORT SurfaceFactory
|
| OwningSurfaceMap;
|
| OwningSurfaceMap surface_map_;
|
|
|
| + SurfaceId most_recently_created_surface_id_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SurfaceFactory);
|
| };
|
|
|
|
|