| 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 "cc/thread_proxy.h" | 7 #include "cc/thread_proxy.h" |
| 8 | 8 |
| 9 #include "CCDelayBasedTimeSource.h" | 9 #include "CCDelayBasedTimeSource.h" |
| 10 #include "CCDrawQuad.h" | 10 #include "CCDrawQuad.h" |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 completion.wait(); | 430 completion.wait(); |
| 431 } | 431 } |
| 432 | 432 |
| 433 void CCThreadProxy::forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent* c
ompletion) | 433 void CCThreadProxy::forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent* c
ompletion) |
| 434 { | 434 { |
| 435 if (m_rendererInitialized) | 435 if (m_rendererInitialized) |
| 436 m_layerTreeHostImpl->renderer()->doNoOp(); | 436 m_layerTreeHostImpl->renderer()->doNoOp(); |
| 437 completion->signal(); | 437 completion->signal(); |
| 438 } | 438 } |
| 439 | 439 |
| 440 | |
| 441 void CCThreadProxy::finishAllRenderingOnImplThread(CCCompletionEvent* completion
) | 440 void CCThreadProxy::finishAllRenderingOnImplThread(CCCompletionEvent* completion
) |
| 442 { | 441 { |
| 443 TRACE_EVENT0("cc", "CCThreadProxy::finishAllRenderingOnImplThread"); | 442 TRACE_EVENT0("cc", "CCThreadProxy::finishAllRenderingOnImplThread"); |
| 444 DCHECK(isImplThread()); | 443 DCHECK(isImplThread()); |
| 445 m_layerTreeHostImpl->finishAllRendering(); | 444 m_layerTreeHostImpl->finishAllRendering(); |
| 446 completion->signal(); | 445 completion->signal(); |
| 447 } | 446 } |
| 448 | 447 |
| 449 void CCThreadProxy::forceBeginFrameOnImplThread(CCCompletionEvent* completion) | 448 void CCThreadProxy::forceBeginFrameOnImplThread(CCCompletionEvent* completion) |
| 450 { | 449 { |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 CCThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() | 947 CCThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() |
| 949 : monotonicFrameBeginTime(0) | 948 : monotonicFrameBeginTime(0) |
| 950 { | 949 { |
| 951 } | 950 } |
| 952 | 951 |
| 953 CCThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() | 952 CCThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() |
| 954 { | 953 { |
| 955 } | 954 } |
| 956 | 955 |
| 957 } // namespace cc | 956 } // namespace cc |
| OLD | NEW |