| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE; | 60 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE; |
| 61 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 61 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
| 62 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 62 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
| 63 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 63 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
| 64 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; | 64 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; |
| 65 | 65 |
| 66 // CCSchedulerClient implementation | 66 // CCSchedulerClient implementation |
| 67 virtual void scheduledActionBeginFrame() OVERRIDE; | 67 virtual void scheduledActionBeginFrame() OVERRIDE; |
| 68 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; | 68 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; |
| 69 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; | 69 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; |
| 70 virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) O
VERRIDE; | 70 virtual void scheduledActionUpdateMoreResources(base::TimeTicks timeLimit) O
VERRIDE; |
| 71 virtual void scheduledActionCommit() OVERRIDE; | 71 virtual void scheduledActionCommit() OVERRIDE; |
| 72 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 72 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
| 73 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 73 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
| 74 | 74 |
| 75 // CCTextureUpdateControllerClient implementation | 75 // CCTextureUpdateControllerClient implementation |
| 76 virtual void readyToFinalizeTextureUpdates() OVERRIDE; | 76 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 explicit CCThreadProxy(CCLayerTreeHost*); | 79 explicit CCThreadProxy(CCLayerTreeHost*); |
| 80 friend class CCThreadProxyContextRecreationTimer; | 80 friend class CCThreadProxyContextRecreationTimer; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 174 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 176 | 176 |
| 177 bool m_renderVSyncEnabled; | 177 bool m_renderVSyncEnabled; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } | 180 } |
| 181 | 181 |
| 182 #endif | 182 #endif |
| OLD | NEW |