Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Unified Diff: cc/output/compositor_frame_sink.h

Issue 2822143003: Remove ForceReclaimResources (Closed)
Patch Set: Change to RunLoop. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698