| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCThreadProxy.h" | 7 #include "CCThreadProxy.h" |
| 8 | 8 |
| 9 #include "CCDelayBasedTimeSource.h" | 9 #include "CCDelayBasedTimeSource.h" |
| 10 #include "CCDrawQuad.h" | 10 #include "CCDrawQuad.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 if (m_commitRequestSentToImplThread) | 299 if (m_commitRequestSentToImplThread) |
| 300 return; | 300 return; |
| 301 m_commitRequestSentToImplThread = true; | 301 m_commitRequestSentToImplThread = true; |
| 302 CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::set
NeedsCommitOnImplThread)); | 302 CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::set
NeedsCommitOnImplThread)); |
| 303 } | 303 } |
| 304 | 304 |
| 305 void CCThreadProxy::didLoseContextOnImplThread() | 305 void CCThreadProxy::didLoseContextOnImplThread() |
| 306 { | 306 { |
| 307 ASSERT(isImplThread()); | 307 ASSERT(isImplThread()); |
| 308 TRACE_EVENT0("cc", "CCThreadProxy::didLoseContextOnImplThread"); | 308 TRACE_EVENT0("cc", "CCThreadProxy::didLoseContextOnImplThread"); |
| 309 m_currentTextureUpdateControllerOnImplThread.clear(); | |
| 310 m_schedulerOnImplThread->didLoseContext(); | 309 m_schedulerOnImplThread->didLoseContext(); |
| 311 } | 310 } |
| 312 | 311 |
| 313 void CCThreadProxy::onSwapBuffersCompleteOnImplThread() | 312 void CCThreadProxy::onSwapBuffersCompleteOnImplThread() |
| 314 { | 313 { |
| 315 ASSERT(isImplThread()); | 314 ASSERT(isImplThread()); |
| 316 TRACE_EVENT0("cc", "CCThreadProxy::onSwapBuffersCompleteOnImplThread"); | 315 TRACE_EVENT0("cc", "CCThreadProxy::onSwapBuffersCompleteOnImplThread"); |
| 317 m_schedulerOnImplThread->didSwapBuffersComplete(); | 316 m_schedulerOnImplThread->didSwapBuffersComplete(); |
| 318 m_mainThreadProxy->postTask(createCCThreadTask(this, &CCThreadProxy::didComp
leteSwapBuffers)); | 317 m_mainThreadProxy->postTask(createCCThreadTask(this, &CCThreadProxy::didComp
leteSwapBuffers)); |
| 319 } | 318 } |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 } | 910 } |
| 912 | 911 |
| 913 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) | 912 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) |
| 914 { | 913 { |
| 915 ASSERT(isImplThread()); | 914 ASSERT(isImplThread()); |
| 916 m_layerTreeHostImpl->renderingStats(*stats); | 915 m_layerTreeHostImpl->renderingStats(*stats); |
| 917 completion->signal(); | 916 completion->signal(); |
| 918 } | 917 } |
| 919 | 918 |
| 920 } // namespace WebCore | 919 } // namespace WebCore |
| OLD | NEW |