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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2609253003: Remove ForceReclaimResources (Closed)
Patch Set: Make test cases / phases the same Created 3 years, 11 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/surfaces/direct_compositor_frame_sink.h ('k') | cc/surfaces/direct_compositor_frame_sink_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index 01239ee9f822df7c1f589bf8691e0857cf804881..188f7db7b7a6c5b3afebe45da5afcdbb8fdeec2f 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -32,7 +32,7 @@ DirectCompositorFrameSink::DirectCompositorFrameSink(
display_(display),
factory_(frame_sink_id, surface_manager, this) {
DCHECK(thread_checker_.CalledOnValidThread());
- capabilities_.can_force_reclaim_resources = true;
+ capabilities_.must_always_swap = true;
// Display and DirectCompositorFrameSink share a GL context, so sync
// points aren't needed when passing resources between them.
capabilities_.delegated_sync_points_required = false;
@@ -50,7 +50,7 @@ DirectCompositorFrameSink::DirectCompositorFrameSink(
display_(display),
factory_(frame_sink_id_, surface_manager, this) {
DCHECK(thread_checker_.CalledOnValidThread());
- capabilities_.can_force_reclaim_resources = true;
+ capabilities_.must_always_swap = true;
}
DirectCompositorFrameSink::~DirectCompositorFrameSink() {
@@ -102,11 +102,6 @@ void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
base::Unretained(this)));
}
-void DirectCompositorFrameSink::ForceReclaimResources() {
- if (delegated_local_frame_id_.is_valid())
- factory_.ClearSurface();
-}
-
void DirectCompositorFrameSink::ReturnResources(
const ReturnedResourceArray& resources) {
if (client_)
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.h ('k') | cc/surfaces/direct_compositor_frame_sink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698