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

Unified Diff: cc/texture_layer.cc

Issue 11475054: cc: Add a blocksPendingCommit flag to LayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: LayerImpl=>Layer, pendingTree=>pendingCommit Created 8 years 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/texture_layer.h ('k') | cc/tiled_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_layer.cc
diff --git a/cc/texture_layer.cc b/cc/texture_layer.cc
index 2cb8ad7406ec46f8c1ef7bd58c9a2116e956674d..a00feeb094f1116465d272e8d39179e88853b10b 100644
--- a/cc/texture_layer.cc
+++ b/cc/texture_layer.cc
@@ -131,4 +131,12 @@ void TextureLayer::pushPropertiesTo(LayerImpl* layer)
m_contentCommitted = drawsContent();
}
+bool TextureLayer::blocksPendingCommit() const
+{
+ // Double-buffered texture layers need to be blocked until they can be made
+ // triple-buffered. Single-buffered layers already prevent draws, so
+ // can block too for simplicity.
+ return true;
+}
+
} // namespace cc
« no previous file with comments | « cc/texture_layer.h ('k') | cc/tiled_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698