| 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 4397a140918c87bbf993bc592c0476957d2ccc79..b030e9d9045c411f617003eb12b2fe37659e1723 100644
|
| --- a/cc/surfaces/compositor_frame_sink_support.h
|
| +++ b/cc/surfaces/compositor_frame_sink_support.h
|
| @@ -99,8 +99,7 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
| void OnBeginFrameSourcePausedChanged(bool paused) override;
|
|
|
| void UpdateNeedsBeginFramesInternal();
|
| - std::unique_ptr<Surface> CreateSurface(const SurfaceInfo& surface_info);
|
| - void DestroyCurrentSurface();
|
| + base::WeakPtr<Surface> CreateSurface(const SurfaceInfo& surface_info);
|
|
|
| CompositorFrameSinkSupportClient* const client_;
|
|
|
| @@ -115,7 +114,8 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
|
|
| SurfaceResourceHolder surface_resource_holder_;
|
|
|
| - std::unique_ptr<Surface> current_surface_;
|
| + base::WeakPtr<Surface> current_surface_;
|
| +
|
| // Counts the number of CompositorFrames that have been submitted and have not
|
| // yet received an ACK.
|
| int ack_pending_count_ = 0;
|
|
|