| 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 b1c18d345e42b5f68d00da731ec75951662d8fe6..8be0ff36191aa3a9359bf2611d7fb870278557c4 100644
|
| --- a/cc/surfaces/compositor_frame_sink_support.h
|
| +++ b/cc/surfaces/compositor_frame_sink_support.h
|
| @@ -30,7 +30,9 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
| CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client,
|
| SurfaceManager* surface_manager,
|
| const FrameSinkId& frame_sink_id,
|
| - bool submits_to_display_compositor);
|
| + bool submits_to_display_compositor,
|
| + bool handles_frame_sink_id_invalidation,
|
| + bool needs_sync_points);
|
|
|
| ~CompositorFrameSinkSupport() override;
|
|
|
| @@ -113,6 +115,18 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
|
|
|
| const bool submits_to_display_compositor_;
|
|
|
| + // TODO(staraz): Remove this flag once ui::Compositor no longer needs to call
|
| + // RegisterFrameSinkId().
|
| + // A surfaceSequence's validity is bound to the lifetime of the parent
|
| + // FrameSink that created it. We track the lifetime of FrameSinks through
|
| + // RegisterFrameSinkId and InvalidateFrameSinkId. During startup and GPU
|
| + // restart, a SurfaceSequence created by the top most layer compositor may be
|
| + // used prior to the creation of the associated CompositorFrameSinkSupport.
|
| + // CompositorFrameSinkSupport is created asynchronously when a new GPU channel
|
| + // is established. Once we switch to SurfaceReferences, this ordering concern
|
| + // goes away and we can remove this bool.
|
| + const bool handles_frame_sink_id_invalidation_;
|
| +
|
| base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
|
|
|