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

Unified Diff: content/test/layouttest_support.cc

Issue 2609253003: Remove ForceReclaimResources (Closed)
Patch Set: Fix tests and re-enable previous swap behavior 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: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index fefd00efdf062bb27b479e32d044f8641eb3f324..70650b56e176d176de233b5f0fa0d5a176746c7f 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -355,8 +355,10 @@ class LayoutTestDependenciesImpl : public LayoutTestDependencies,
std::move(compositor_context_provider),
std::move(worker_context_provider), nullptr /* shared_bitmap_manager */,
gpu_memory_buffer_manager, settings.renderer_settings, task_runner,
- synchronous_composite, false /* force_disable_reclaim_resources */);
+ synchronous_composite);
compositor_frame_sink->SetClient(this);
+ // Always swap (regardless of damage) to ensure that we can capture frames.
+ compositor_frame_sink->SetAlwaysSwap();
danakj 2017/01/11 19:28:24 Instead we could have the code that inserts a copy
ericrk 2017/01/11 23:10:50 Added the invalidation to the code that triggers t
compositor_frame_sinks_[routing_id] = compositor_frame_sink.get();
return std::move(compositor_frame_sink);
}

Powered by Google App Engine
This is Rietveld 408576698