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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1427693002: Move SingleThreadProxy::LayoutAndUpdateLayers into LayerTreeHost directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 7641fe87c0dc5438a52abf004e799f968077b83f..fe6a43df62a683cb376810eaeab4ddd3826dbd0d 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -671,7 +671,16 @@ void LayerTreeHost::LayoutAndUpdateLayers() {
DCHECK(!settings_.single_thread_proxy_scheduler);
SingleThreadProxy* proxy = static_cast<SingleThreadProxy*>(proxy_.get());
- proxy->LayoutAndUpdateLayers();
+ if (output_surface_lost()) {
+ proxy->RequestNewOutputSurface();
+ // RequestNewOutputSurface could have synchronously created an output
+ // surface, so check again before returning.
+ if (output_surface_lost())
+ return;
+ }
+
+ Layout();
+ UpdateLayers();
}
void LayerTreeHost::Composite(base::TimeTicks frame_begin_time) {
« no previous file with comments | « no previous file | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698