Chromium Code Reviews| 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; |
| { |