Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: cc/CCSingleThreadProxy.h

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use uint64_t and rename variables to *Count Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« cc/CCRenderingStats.h ('K') | « cc/CCScheduler.cpp ('k') | cc/CCThreadProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698