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

Unified Diff: cc/single_thread_proxy.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Defer commits and rebase. Created 8 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
Index: cc/single_thread_proxy.cc
diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
index 30d88ba74dba5c95835ee18681828fe73b9ec44d..089e836382e46703eb6283fd661f307ca4750fc1 100644
--- a/cc/single_thread_proxy.cc
+++ b/cc/single_thread_proxy.cc
@@ -231,6 +231,10 @@ void SingleThreadProxy::setNeedsRedraw()
setNeedsCommit();
}
+void SingleThreadProxy::setDeferCommits(bool)
+{
+}
+
bool SingleThreadProxy::commitRequested() const
{
return false;
@@ -316,6 +320,11 @@ bool SingleThreadProxy::commitAndComposite()
if (!m_layerTreeHost->initializeRendererIfNeeded())
return false;
+ if (m_layerTreeHost->deferCommits()) {
+ TRACE_EVENT0("cc", "EarlyOut_DeferCommits");
jamesr 2012/10/23 17:50:44 I don't think this is right. In single-threaded m
jonathan.backer 2012/10/23 19:26:42 Done.
+ return false;
+ }
+
// Unlink any texture backings that were deleted
PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
{

Powered by Google App Engine
This is Rietveld 408576698