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

Unified Diff: content/renderer/gpu/render_widget_compositor.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/trees/layer_tree_host_unittest.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index b9cdc15aa7d1c0f90bcf7d33b0253d186ddf6da8..41e5f7a1e13fe2ab5343f2fde2a321b1f0d50dc8 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -921,6 +921,9 @@ void RenderWidgetCompositor::compositeAndReadbackAsync(
callback, base::Passed(&result)));
},
callback, base::Passed(&main_thread_task_runner)));
+ // Force a redraw to ensure that the copy swap promise isn't cancelled due to
+ // no damage.
+ SetNeedsForcedRedraw();
layer_tree_host_->QueueSwapPromise(
delegate_->RequestCopyOfOutputForLayoutTest(std::move(request)));
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698