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

Side by Side Diff: cc/CCThreadProxy.h

Issue 10914304: Add average commit time to perf tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 CCThreadProxy_h 5 #ifndef CCThreadProxy_h
6 #define CCThreadProxy_h 6 #define CCThreadProxy_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCCompletionEvent.h" 9 #include "CCCompletionEvent.h"
10 #include "CCLayerTreeHostImpl.h" 10 #include "CCLayerTreeHostImpl.h"
(...skipping 21 matching lines...) Expand all
32 // CCProxy implementation 32 // CCProxy implementation
33 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; 33 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE;
34 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration) OVERRIDE; 34 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration) OVERRIDE;
35 virtual void finishAllRendering() OVERRIDE; 35 virtual void finishAllRendering() OVERRIDE;
36 virtual bool isStarted() const OVERRIDE; 36 virtual bool isStarted() const OVERRIDE;
37 virtual bool initializeContext() OVERRIDE; 37 virtual bool initializeContext() OVERRIDE;
38 virtual void setSurfaceReady() OVERRIDE; 38 virtual void setSurfaceReady() OVERRIDE;
39 virtual void setVisible(bool) OVERRIDE; 39 virtual void setVisible(bool) OVERRIDE;
40 virtual bool initializeRenderer() OVERRIDE; 40 virtual bool initializeRenderer() OVERRIDE;
41 virtual bool recreateContext() OVERRIDE; 41 virtual bool recreateContext() OVERRIDE;
42 virtual void implSideRenderingStats(CCRenderingStats&) OVERRIDE; 42 virtual void renderingStats(CCRenderingStats&) OVERRIDE;
43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; 43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
44 virtual void loseContext() OVERRIDE; 44 virtual void loseContext() OVERRIDE;
45 virtual void setNeedsAnimate() OVERRIDE; 45 virtual void setNeedsAnimate() OVERRIDE;
46 virtual void setNeedsCommit() OVERRIDE; 46 virtual void setNeedsCommit() OVERRIDE;
47 virtual void setNeedsRedraw() OVERRIDE; 47 virtual void setNeedsRedraw() OVERRIDE;
48 virtual bool commitRequested() const OVERRIDE; 48 virtual bool commitRequested() const OVERRIDE;
49 virtual void didAddAnimation() OVERRIDE { } 49 virtual void didAddAnimation() OVERRIDE { }
50 virtual void start() OVERRIDE; 50 virtual void start() OVERRIDE;
51 virtual void stop() OVERRIDE; 51 virtual void stop() OVERRIDE;
52 virtual size_t maxPartialTextureUpdates() const OVERRIDE; 52 virtual size_t maxPartialTextureUpdates() const OVERRIDE;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void finishAllRenderingOnImplThread(CCCompletionEvent*); 114 void finishAllRenderingOnImplThread(CCCompletionEvent*);
115 void initializeImplOnImplThread(CCCompletionEvent*, PassOwnPtr<CCInputHandle r>); 115 void initializeImplOnImplThread(CCCompletionEvent*, PassOwnPtr<CCInputHandle r>);
116 void setSurfaceReadyOnImplThread(); 116 void setSurfaceReadyOnImplThread();
117 void setVisibleOnImplThread(CCCompletionEvent*, bool); 117 void setVisibleOnImplThread(CCCompletionEvent*, bool);
118 void initializeContextOnImplThread(CCGraphicsContext*); 118 void initializeContextOnImplThread(CCGraphicsContext*);
119 void initializeRendererOnImplThread(CCCompletionEvent*, bool* initializeSucc eeded, RendererCapabilities*); 119 void initializeRendererOnImplThread(CCCompletionEvent*, bool* initializeSucc eeded, RendererCapabilities*);
120 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); 120 void layerTreeHostClosedOnImplThread(CCCompletionEvent*);
121 void setFullRootLayerDamageOnImplThread(); 121 void setFullRootLayerDamageOnImplThread();
122 void acquireLayerTexturesForMainThreadOnImplThread(CCCompletionEvent*); 122 void acquireLayerTexturesForMainThreadOnImplThread(CCCompletionEvent*);
123 void recreateContextOnImplThread(CCCompletionEvent*, CCGraphicsContext*, boo l* recreateSucceeded, RendererCapabilities*); 123 void recreateContextOnImplThread(CCCompletionEvent*, CCGraphicsContext*, boo l* recreateSucceeded, RendererCapabilities*);
124 void implSideRenderingStatsOnImplThread(CCCompletionEvent*, CCRenderingStats *); 124 void renderingStatsOnImplThread(CCCompletionEvent*, CCRenderingStats*);
125 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f orcedDraw); 125 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f orcedDraw);
126 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); 126 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*);
127 void setNeedsForcedCommitOnImplThread(); 127 void setNeedsForcedCommitOnImplThread();
128 128
129 // Accessed on main thread only. 129 // Accessed on main thread only.
130 bool m_animateRequested; // Set only when setNeedsAnimate is called. 130 bool m_animateRequested; // Set only when setNeedsAnimate is called.
131 bool m_commitRequested; // Set only when setNeedsCommit is called. 131 bool m_commitRequested; // Set only when setNeedsCommit is called.
132 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate. 132 bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsA nimate.
133 bool m_forcedCommitRequested; 133 bool m_forcedCommitRequested;
134 OwnPtr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer; 134 OwnPtr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 OwnPtr<CCTextureUpdateController> m_currentTextureUpdateControllerOnImplThre ad; 166 OwnPtr<CCTextureUpdateController> m_currentTextureUpdateControllerOnImplThre ad;
167 167
168 // Set when we need to reset the contentsTexturesPurged flag after the 168 // Set when we need to reset the contentsTexturesPurged flag after the
169 // commit. 169 // commit.
170 bool m_resetContentsTexturesPurgedAfterCommitOnImplThread; 170 bool m_resetContentsTexturesPurgedAfterCommitOnImplThread;
171 171
172 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad. 172 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad.
173 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; 173 bool m_nextFrameIsNewlyCommittedFrameOnImplThread;
174 174
175 bool m_renderVSyncEnabled; 175 bool m_renderVSyncEnabled;
176
177 // Statistics
nduca 2012/09/15 00:36:09 meh on comment
brianderson 2012/09/18 01:16:44 Done.
178 double m_totalCommitTime;
179 size_t m_totalCommitCount;
176 }; 180 };
177 181
178 } 182 }
179 183
180 #endif 184 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698