| Index: cc/output/compositor_frame_sink.h
|
| diff --git a/cc/output/compositor_frame_sink.h b/cc/output/compositor_frame_sink.h
|
| index 650f7191c2ed4ecacb28542734fdad8da2aa9053..f8b7a47b4e6c97fc06934a4a4062377f270e1e45 100644
|
| --- a/cc/output/compositor_frame_sink.h
|
| +++ b/cc/output/compositor_frame_sink.h
|
| @@ -41,9 +41,13 @@ class CC_EXPORT CompositorFrameSink {
|
| struct Capabilities {
|
| Capabilities() = default;
|
|
|
| - // Whether ForceReclaimResources can be called to reclaim all resources
|
| - // from the CompositorFrameSink.
|
| - bool can_force_reclaim_resources = false;
|
| + // True if we must always swap, even if there is no damage to the frame.
|
| + // Needed for both the browser compositor as well as layout tests.
|
| + // TODO(ericrk): This should be test-only for layout tests, but tab
|
| + // capture has issues capturing offscreen tabs whithout this. We should
|
| + // remove this dependency. crbug.com/680196
|
| + bool must_always_swap = false;
|
| +
|
| // True if sync points for resources are needed when swapping delegated
|
| // frames.
|
| bool delegated_sync_points_required = true;
|
| @@ -102,10 +106,6 @@ class CC_EXPORT CompositorFrameSink {
|
| return shared_bitmap_manager_;
|
| }
|
|
|
| - // If supported, this causes a ReclaimResources for all resources that are
|
| - // currently in use.
|
| - virtual void ForceReclaimResources() {}
|
| -
|
| // If supported, this sets the LocalSurfaceId the CompositorFrameSink will use
|
| // to submit a CompositorFrame.
|
| virtual void SetLocalSurfaceId(const LocalSurfaceId& local_surface_id) {}
|
|
|