| 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 CCSingleThreadProxy_h | 5 #ifndef CCSingleThreadProxy_h |
| 6 #define CCSingleThreadProxy_h | 6 #define CCSingleThreadProxy_h |
| 7 | 7 |
| 8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCLayerTreeHostImpl.h" | 9 #include "CCLayerTreeHostImpl.h" |
| 10 #include "CCProxy.h" | 10 #include "CCProxy.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void setNeedsAnimate() OVERRIDE; | 36 virtual void setNeedsAnimate() OVERRIDE; |
| 37 virtual void setNeedsCommit() OVERRIDE; | 37 virtual void setNeedsCommit() OVERRIDE; |
| 38 virtual void setNeedsRedraw() OVERRIDE; | 38 virtual void setNeedsRedraw() OVERRIDE; |
| 39 virtual bool commitRequested() const OVERRIDE; | 39 virtual bool commitRequested() const OVERRIDE; |
| 40 virtual void didAddAnimation() OVERRIDE; | 40 virtual void didAddAnimation() OVERRIDE; |
| 41 virtual void start() OVERRIDE; | 41 virtual void start() OVERRIDE; |
| 42 virtual void stop() OVERRIDE; | 42 virtual void stop() OVERRIDE; |
| 43 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 43 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
| 44 virtual void acquireLayerTextures() OVERRIDE { } | 44 virtual void acquireLayerTextures() OVERRIDE { } |
| 45 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 45 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
| 46 virtual void setShowFPSCounter(bool show) OVERRIDE; |
| 46 | 47 |
| 47 // CCLayerTreeHostImplClient implementation | 48 // CCLayerTreeHostImplClient implementation |
| 48 virtual void didLoseContextOnImplThread() OVERRIDE { } | 49 virtual void didLoseContextOnImplThread() OVERRIDE { } |
| 49 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 50 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
| 50 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE { } | 51 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE { } |
| 51 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } | 52 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
| 52 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 53 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
| 53 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 54 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
| 54 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 55 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
| 55 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; | 56 virtual void releaseContentsTexturesOnImplThread() OVERRIDE; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // satisfy assertion checks | 126 // satisfy assertion checks |
| 126 class DebugScopedSetImplThreadAndMainThreadBlocked { | 127 class DebugScopedSetImplThreadAndMainThreadBlocked { |
| 127 private: | 128 private: |
| 128 DebugScopedSetImplThread m_implThread; | 129 DebugScopedSetImplThread m_implThread; |
| 129 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 130 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace cc | 133 } // namespace cc |
| 133 | 134 |
| 134 #endif | 135 #endif |
| OLD | NEW |