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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void start() OVERRIDE; | 42 virtual void start() OVERRIDE; |
43 virtual void stop() OVERRIDE; | 43 virtual void stop() OVERRIDE; |
44 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer
ic_limits<size_t>::max(); } | 44 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer
ic_limits<size_t>::max(); } |
45 virtual void acquireLayerTextures() OVERRIDE { } | 45 virtual void acquireLayerTextures() OVERRIDE { } |
46 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 46 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
47 | 47 |
48 // CCLayerTreeHostImplClient implementation | 48 // CCLayerTreeHostImplClient implementation |
49 virtual void didLoseContextOnImplThread() OVERRIDE { } | 49 virtual void didLoseContextOnImplThread() OVERRIDE { } |
50 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { ASSERT_NOT_REACH
ED(); } | 50 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { ASSERT_NOT_REACH
ED(); } |
51 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE { } | 51 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE { } |
| 52 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
52 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } | 53 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } |
53 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } | 54 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } |
54 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 55 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
55 | 56 |
56 // Called by the legacy path where RenderWidget does the scheduling. | 57 // Called by the legacy path where RenderWidget does the scheduling. |
57 void compositeImmediately(); | 58 void compositeImmediately(); |
58 | 59 |
59 private: | 60 private: |
60 explicit CCSingleThreadProxy(CCLayerTreeHost*); | 61 explicit CCSingleThreadProxy(CCLayerTreeHost*); |
61 | 62 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // satisfy assertion checks | 123 // satisfy assertion checks |
123 class DebugScopedSetImplThreadAndMainThreadBlocked { | 124 class DebugScopedSetImplThreadAndMainThreadBlocked { |
124 private: | 125 private: |
125 DebugScopedSetImplThread m_implThread; | 126 DebugScopedSetImplThread m_implThread; |
126 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 127 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
127 }; | 128 }; |
128 | 129 |
129 } // namespace WebCore | 130 } // namespace WebCore |
130 | 131 |
131 #endif | 132 #endif |
OLD | NEW |