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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2609253003: Remove ForceReclaimResources (Closed)
Patch Set: cleanup 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
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..46b216d7166f5878a0aa1ff87d24847aa777e691 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -32,7 +32,6 @@ DirectCompositorFrameSink::DirectCompositorFrameSink(
display_(display),
factory_(frame_sink_id, surface_manager, this) {
DCHECK(thread_checker_.CalledOnValidThread());
- capabilities_.can_force_reclaim_resources = 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 +49,6 @@ DirectCompositorFrameSink::DirectCompositorFrameSink(
display_(display),
factory_(frame_sink_id_, surface_manager, this) {
DCHECK(thread_checker_.CalledOnValidThread());
- capabilities_.can_force_reclaim_resources = true;
}
DirectCompositorFrameSink::~DirectCompositorFrameSink() {
@@ -102,11 +100,6 @@ void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
base::Unretained(this)));
}
-void DirectCompositorFrameSink::ForceReclaimResources() {
- if (delegated_local_frame_id_.is_valid())
- factory_.ClearSurface();
danakj 2017/01/04 18:43:38 Good news/bad news. This is the only caller of Cle
ericrk 2017/01/11 19:17:54 Removed this and the now unused "EvictFrame" I fou
-}
-
void DirectCompositorFrameSink::ReturnResources(
const ReturnedResourceArray& resources) {
if (client_)

Powered by Google App Engine
This is Rietveld 408576698