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

Unified Diff: cc/surfaces/display.cc

Issue 2242633002: Android: Force draw for pending readbacks during Display teardown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tn1
Patch Set: fix Created 4 years, 4 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/display.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 9a5c7e524d4207b90e2759927796f7a94cddff80..31c9f176995a7627b8c584b661bd032baffa601c 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -421,4 +421,9 @@ const SurfaceId& Display::CurrentSurfaceId() {
return current_surface_id_;
}
+void Display::ForceImmediateDrawAndSwapIfPossible() {
+ if (scheduler_)
+ scheduler_->ForceImmediateSwapIfPossible();
+}
+
} // namespace cc
« no previous file with comments | « cc/surfaces/display.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698