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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

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/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 f09319c7b52bc214ca76ad6f87fab043fdbd4f78..3666836594c51ab75e8fab5d43a58a508f38ae32 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -949,6 +949,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