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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void start() OVERRIDE; | 51 virtual void start() OVERRIDE; |
52 virtual void stop() OVERRIDE; | 52 virtual void stop() OVERRIDE; |
53 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 53 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
54 virtual void acquireLayerTextures() OVERRIDE; | 54 virtual void acquireLayerTextures() OVERRIDE; |
55 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 55 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
56 | 56 |
57 // CCLayerTreeHostImplClient implementation | 57 // CCLayerTreeHostImplClient implementation |
58 virtual void didLoseContextOnImplThread() OVERRIDE; | 58 virtual void didLoseContextOnImplThread() OVERRIDE; |
59 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 59 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
60 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; | 60 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; |
| 61 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE; |
61 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 62 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
62 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 63 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
63 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 64 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
64 | 65 |
65 // CCSchedulerClient implementation | 66 // CCSchedulerClient implementation |
66 virtual bool canDraw() OVERRIDE; | |
67 virtual bool hasMoreResourceUpdates() const OVERRIDE; | 67 virtual bool hasMoreResourceUpdates() const OVERRIDE; |
| 68 |
68 virtual void scheduledActionBeginFrame() OVERRIDE; | 69 virtual void scheduledActionBeginFrame() OVERRIDE; |
69 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; | 70 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossi
ble() OVERRIDE; |
70 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; | 71 virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced(
) OVERRIDE; |
71 virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) O
VERRIDE; | 72 virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) O
VERRIDE; |
72 virtual void scheduledActionCommit() OVERRIDE; | 73 virtual void scheduledActionCommit() OVERRIDE; |
73 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 74 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
74 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 75 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
75 | 76 |
76 private: | 77 private: |
77 explicit CCThreadProxy(CCLayerTreeHost*); | 78 explicit CCThreadProxy(CCLayerTreeHost*); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 173 |
173 // 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. |
174 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
175 | 176 |
176 bool m_renderVSyncEnabled; | 177 bool m_renderVSyncEnabled; |
177 }; | 178 }; |
178 | 179 |
179 } | 180 } |
180 | 181 |
181 #endif | 182 #endif |
OLD | NEW |