| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void setNeedsAnimate() OVERRIDE; | 45 virtual void setNeedsAnimate() OVERRIDE; |
| 46 virtual void setNeedsCommit() OVERRIDE; | 46 virtual void setNeedsCommit() OVERRIDE; |
| 47 virtual void setNeedsRedraw() OVERRIDE; | 47 virtual void setNeedsRedraw() OVERRIDE; |
| 48 virtual bool commitRequested() const OVERRIDE; | 48 virtual bool commitRequested() const OVERRIDE; |
| 49 virtual void didAddAnimation() OVERRIDE { } | 49 virtual void didAddAnimation() OVERRIDE { } |
| 50 virtual void start() OVERRIDE; | 50 virtual void start() OVERRIDE; |
| 51 virtual void stop() OVERRIDE; | 51 virtual void stop() OVERRIDE; |
| 52 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 52 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
| 53 virtual void acquireLayerTextures() OVERRIDE; | 53 virtual void acquireLayerTextures() OVERRIDE; |
| 54 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 54 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
| 55 virtual void setShowFPSCounter(bool show) OVERRIDE; |
| 55 | 56 |
| 56 // CCLayerTreeHostImplClient implementation | 57 // CCLayerTreeHostImplClient implementation |
| 57 virtual void didLoseContextOnImplThread() OVERRIDE; | 58 virtual void didLoseContextOnImplThread() OVERRIDE; |
| 58 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 59 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
| 59 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; | 60 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; |
| 60 virtual void onCanDrawStateChanged(bool canDraw) 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(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 64 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
| 64 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; | 65 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void initializeContextOnImplThread(CCGraphicsContext*); | 120 void initializeContextOnImplThread(CCGraphicsContext*); |
| 120 void initializeRendererOnImplThread(CCCompletionEvent*, bool* initializeSucc
eeded, RendererCapabilities*); | 121 void initializeRendererOnImplThread(CCCompletionEvent*, bool* initializeSucc
eeded, RendererCapabilities*); |
| 121 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); | 122 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); |
| 122 void setFullRootLayerDamageOnImplThread(); | 123 void setFullRootLayerDamageOnImplThread(); |
| 123 void acquireLayerTexturesForMainThreadOnImplThread(CCCompletionEvent*); | 124 void acquireLayerTexturesForMainThreadOnImplThread(CCCompletionEvent*); |
| 124 void recreateContextOnImplThread(CCCompletionEvent*, CCGraphicsContext*, boo
l* recreateSucceeded, RendererCapabilities*); | 125 void recreateContextOnImplThread(CCCompletionEvent*, CCGraphicsContext*, boo
l* recreateSucceeded, RendererCapabilities*); |
| 125 void renderingStatsOnImplThread(CCCompletionEvent*, CCRenderingStats*); | 126 void renderingStatsOnImplThread(CCCompletionEvent*, CCRenderingStats*); |
| 126 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); | 127 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); |
| 127 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); | 128 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); |
| 128 void setNeedsForcedCommitOnImplThread(); | 129 void setNeedsForcedCommitOnImplThread(); |
| 130 void setShowFPSCounterOnImplThread(bool show); |
| 129 | 131 |
| 130 // Accessed on main thread only. | 132 // Accessed on main thread only. |
| 131 bool m_animateRequested; // Set only when setNeedsAnimate is called. | 133 bool m_animateRequested; // Set only when setNeedsAnimate is called. |
| 132 bool m_commitRequested; // Set only when setNeedsCommit is called. | 134 bool m_commitRequested; // Set only when setNeedsCommit is called. |
| 133 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
nimate. | 135 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA
nimate. |
| 134 bool m_forcedCommitRequested; | 136 bool m_forcedCommitRequested; |
| 135 scoped_ptr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer; | 137 scoped_ptr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer; |
| 136 CCLayerTreeHost* m_layerTreeHost; | 138 CCLayerTreeHost* m_layerTreeHost; |
| 137 bool m_rendererInitialized; | 139 bool m_rendererInitialized; |
| 138 RendererCapabilities m_RendererCapabilitiesMainThreadCopy; | 140 RendererCapabilities m_RendererCapabilitiesMainThreadCopy; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 173 |
| 172 bool m_renderVSyncEnabled; | 174 bool m_renderVSyncEnabled; |
| 173 | 175 |
| 174 base::TimeDelta m_totalCommitTime; | 176 base::TimeDelta m_totalCommitTime; |
| 175 size_t m_totalCommitCount; | 177 size_t m_totalCommitCount; |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 } | 180 } |
| 179 | 181 |
| 180 #endif | 182 #endif |
| OLD | NEW |