| Index: cc/surfaces/compositor_frame_sink_support.h
|
| diff --git a/cc/surfaces/compositor_frame_sink_support.h b/cc/surfaces/compositor_frame_sink_support.h
|
| index d3d3cbbe5b470862e052206cebf4de6303a0feb0..49a2fd80a71694d475ec706167529dda1867e9b1 100644
|
| --- a/cc/surfaces/compositor_frame_sink_support.h
|
| +++ b/cc/surfaces/compositor_frame_sink_support.h
|
| @@ -29,18 +29,18 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
| public BeginFrameObserver {
|
| public:
|
| CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client,
|
| - SurfaceManager* surface_manager,
|
| const FrameSinkId& frame_sink_id,
|
| bool is_root,
|
| - bool handles_frame_sink_id_invalidation,
|
| - bool needs_sync_points);
|
| + bool handles_frame_sink_id_invalidation);
|
|
|
| ~CompositorFrameSinkSupport() override;
|
|
|
| + void Init(SurfaceManager* surface_manager, bool needs_sync_points);
|
| +
|
| const FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
|
|
|
| Surface* current_surface_for_testing() {
|
| - return surface_factory_.current_surface_for_testing();
|
| + return surface_factory_->current_surface_for_testing();
|
| }
|
|
|
| const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const {
|
| @@ -88,11 +88,11 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
|
|
| CompositorFrameSinkSupportClient* const client_;
|
|
|
| - SurfaceManager* const surface_manager_;
|
| + SurfaceManager* surface_manager_;
|
|
|
| const FrameSinkId frame_sink_id_;
|
|
|
| - SurfaceFactory surface_factory_;
|
| + std::unique_ptr<SurfaceFactory> surface_factory_;
|
| // Counts the number of CompositorFrames that have been submitted and have not
|
| // yet received an ACK.
|
| int ack_pending_count_ = 0;
|
|
|