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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 750643003: Android: Improve Composite-with-no-GPU-channel handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index 54c6469eb4709024be81459abd8224edd987e703..51e136867732e9f58c40ae991c9303f20c528a63 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -124,7 +124,8 @@ class CONTENT_EXPORT CompositorImpl
}
bool WillComposite() const {
return WillCompositeThisFrame() ||
- composite_on_vsync_trigger_ != DO_NOT_COMPOSITE;
+ composite_on_vsync_trigger_ != DO_NOT_COMPOSITE ||
+ defer_composite_for_gpu_channel_;
}
void CancelComposite() {
DCHECK(WillComposite());
@@ -185,6 +186,11 @@ class CONTENT_EXPORT CompositorImpl
// the GPU thread.
unsigned int pending_swapbuffers_;
+ // Whether we are currently deferring a requested Composite operation until
+ // the GPU channel is established (it was either lost or not yet fully
+ // established the first time we tried to composite).
+ bool defer_composite_for_gpu_channel_;
+
base::TimeDelta vsync_period_;
base::TimeTicks last_vsync_;
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698