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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 OwnPtr<CCGraphicsContext> m_contextBeforeInitialization; | 75 OwnPtr<CCGraphicsContext> m_contextBeforeInitialization; |
76 | 76 |
77 // Used on the CCThread, but checked on main thread during initialization/sh
utdown. | 77 // Used on the CCThread, but checked on main thread during initialization/sh
utdown. |
78 OwnPtr<CCLayerTreeHostImpl> m_layerTreeHostImpl; | 78 OwnPtr<CCLayerTreeHostImpl> m_layerTreeHostImpl; |
79 bool m_rendererInitialized; | 79 bool m_rendererInitialized; |
80 RendererCapabilities m_RendererCapabilitiesForMainThread; | 80 RendererCapabilities m_RendererCapabilitiesForMainThread; |
81 | 81 |
82 bool m_nextFrameIsNewlyCommittedFrame; | 82 bool m_nextFrameIsNewlyCommittedFrame; |
83 | 83 |
84 base::TimeDelta m_totalCommitTime; | 84 base::TimeDelta m_totalCommitTime; |
85 size_t m_totalCommitCount; | 85 uint64_t m_totalCommitCount; |
86 }; | 86 }; |
87 | 87 |
88 // For use in the single-threaded case. In debug builds, it pretends that the | 88 // For use in the single-threaded case. In debug builds, it pretends that the |
89 // code is running on the impl thread to satisfy assertion checks. | 89 // code is running on the impl thread to satisfy assertion checks. |
90 class DebugScopedSetImplThread { | 90 class DebugScopedSetImplThread { |
91 public: | 91 public: |
92 DebugScopedSetImplThread() | 92 DebugScopedSetImplThread() |
93 { | 93 { |
94 #if !ASSERT_DISABLED | 94 #if !ASSERT_DISABLED |
95 CCProxy::setCurrentThreadIsImplThread(true); | 95 CCProxy::setCurrentThreadIsImplThread(true); |
(...skipping 30 matching lines...) Expand all 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 |