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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1327343003: Force swap buffers when re-creating the buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-scanout
Patch Set: Created 5 years, 3 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index fa3ba0e599df1d93f2bbd0fdf3c7ce6f33c2a9cd..a0176f25ca6b7b15d58fc3167e4a2767c0678bcc 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1444,6 +1444,10 @@ void LayerTreeHostImpl::OnDraw() {
client_->OnDrawForOutputSurface();
}
+void LayerTreeHostImpl::ForceSwap() {
+ SetNeedsCommit();
+}
+
void LayerTreeHostImpl::OnCanDrawStateChangedForTree() {
client_->OnCanDrawStateChanged(CanDraw());
}

Powered by Google App Engine
This is Rietveld 408576698