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 <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, double wallClockTime) OVERRIDE; | 55 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, double wallClockTime) OVERRIDE; |
56 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; | 56 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; |
57 | 57 |
58 // Called by the legacy path where RenderWidget does the scheduling. | 58 // Called by the legacy path where RenderWidget does the scheduling. |
59 void compositeImmediately(); | 59 void compositeImmediately(); |
60 | 60 |
61 private: | 61 private: |
62 explicit SingleThreadProxy(LayerTreeHost*); | 62 explicit SingleThreadProxy(LayerTreeHost*); |
63 | 63 |
64 bool commitAndComposite(); | 64 bool commitAndComposite(); |
65 void doCommit(scoped_ptr<TextureUpdateQueue>); | 65 void doCommit(scoped_ptr<ResourceUpdateQueue>); |
66 bool doComposite(); | 66 bool doComposite(); |
67 void didSwapFrame(); | 67 void didSwapFrame(); |
68 | 68 |
69 // Accessed on main thread only. | 69 // Accessed on main thread only. |
70 LayerTreeHost* m_layerTreeHost; | 70 LayerTreeHost* m_layerTreeHost; |
71 bool m_contextLost; | 71 bool m_contextLost; |
72 | 72 |
73 // Holds on to the context between initializeContext() and initializeRendere
r() calls. Shouldn't | 73 // Holds on to the context between initializeContext() and initializeRendere
r() calls. Shouldn't |
74 // be used for anything else. | 74 // be used for anything else. |
75 scoped_ptr<GraphicsContext> m_contextBeforeInitialization; | 75 scoped_ptr<GraphicsContext> m_contextBeforeInitialization; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // satisfy assertion checks | 126 // satisfy assertion checks |
127 class DebugScopedSetImplThreadAndMainThreadBlocked { | 127 class DebugScopedSetImplThreadAndMainThreadBlocked { |
128 private: | 128 private: |
129 DebugScopedSetImplThread m_implThread; | 129 DebugScopedSetImplThread m_implThread; |
130 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 130 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
131 }; | 131 }; |
132 | 132 |
133 } // namespace cc | 133 } // namespace cc |
134 | 134 |
135 #endif | 135 #endif |
OLD | NEW |