| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 completion.wait(); | 427 completion.wait(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void CCThreadProxy::forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent* c
ompletion) | 430 void CCThreadProxy::forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent* c
ompletion) |
| 431 { | 431 { |
| 432 if (m_rendererInitialized) | 432 if (m_rendererInitialized) |
| 433 m_layerTreeHostImpl->renderer()->doNoOp(); | 433 m_layerTreeHostImpl->renderer()->doNoOp(); |
| 434 completion->signal(); | 434 completion->signal(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 void CCThreadProxy::setShowFPSCounter(bool show) |
| 438 { |
| 439 ASSERT(CCProxy::isMainThread()); |
| 440 CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::set
ShowFPSCounterOnImplThread, show)); |
| 441 } |
| 442 |
| 443 void CCThreadProxy::setShowFPSCounterOnImplThread(bool show) |
| 444 { |
| 445 TRACE_EVENT0("cc", "CCThreadProxy::setShowFPSCounterOnImplThread"); |
| 446 ASSERT(CCProxy::isImplThread()); |
| 447 m_layerTreeHostImpl->setShowFPSCounter(show); |
| 448 } |
| 437 | 449 |
| 438 void CCThreadProxy::finishAllRenderingOnImplThread(CCCompletionEvent* completion
) | 450 void CCThreadProxy::finishAllRenderingOnImplThread(CCCompletionEvent* completion
) |
| 439 { | 451 { |
| 440 TRACE_EVENT0("cc", "CCThreadProxy::finishAllRenderingOnImplThread"); | 452 TRACE_EVENT0("cc", "CCThreadProxy::finishAllRenderingOnImplThread"); |
| 441 ASSERT(isImplThread()); | 453 ASSERT(isImplThread()); |
| 442 m_layerTreeHostImpl->finishAllRendering(); | 454 m_layerTreeHostImpl->finishAllRendering(); |
| 443 completion->signal(); | 455 completion->signal(); |
| 444 } | 456 } |
| 445 | 457 |
| 446 void CCThreadProxy::forceBeginFrameOnImplThread(CCCompletionEvent* completion) | 458 void CCThreadProxy::forceBeginFrameOnImplThread(CCCompletionEvent* completion) |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 CCThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() | 957 CCThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() |
| 946 : monotonicFrameBeginTime(0) | 958 : monotonicFrameBeginTime(0) |
| 947 { | 959 { |
| 948 } | 960 } |
| 949 | 961 |
| 950 CCThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() | 962 CCThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() |
| 951 { | 963 { |
| 952 } | 964 } |
| 953 | 965 |
| 954 } // namespace cc | 966 } // namespace cc |
| OLD | NEW |