| 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 #ifndef CCThreadProxy_h | 5 #ifndef CCThreadProxy_h |
| 6 #define CCThreadProxy_h | 6 #define CCThreadProxy_h |
| 7 | 7 |
| 8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCCompletionEvent.h" | 9 #include "CCCompletionEvent.h" |
| 10 #include "CCLayerTreeHostImpl.h" | 10 #include "CCLayerTreeHostImpl.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // CCSchedulerClient implementation | 65 // CCSchedulerClient implementation |
| 66 virtual void scheduledActionBeginFrame() OVERRIDE; | 66 virtual void scheduledActionBeginFrame() OVERRIDE; |
| 67 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; | 67 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; |
| 68 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; | 68 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; |
| 69 virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) O
VERRIDE; | 69 virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) O
VERRIDE; |
| 70 virtual void scheduledActionCommit() OVERRIDE; | 70 virtual void scheduledActionCommit() OVERRIDE; |
| 71 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 71 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
| 72 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 72 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
| 73 | 73 |
| 74 // CCTextureUpdateControllerClient implementation | 74 // CCTextureUpdateControllerClient implementation |
| 75 virtual void updateTexturesCompleted() OVERRIDE; | 75 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 explicit CCThreadProxy(CCLayerTreeHost*); | 78 explicit CCThreadProxy(CCLayerTreeHost*); |
| 79 friend class CCThreadProxyContextRecreationTimer; | 79 friend class CCThreadProxyContextRecreationTimer; |
| 80 | 80 |
| 81 // Set on impl thread, read on main thread. | 81 // Set on impl thread, read on main thread. |
| 82 struct BeginFrameAndCommitState { | 82 struct BeginFrameAndCommitState { |
| 83 BeginFrameAndCommitState() | 83 BeginFrameAndCommitState() |
| 84 : monotonicFrameBeginTime(0) | 84 : monotonicFrameBeginTime(0) |
| 85 { | 85 { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 173 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 174 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 174 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 175 | 175 |
| 176 bool m_renderVSyncEnabled; | 176 bool m_renderVSyncEnabled; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } | 179 } |
| 180 | 180 |
| 181 #endif | 181 #endif |
| OLD | NEW |