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

Side by Side Diff: cc/CCLayerTreeHost.h

Issue 10914304: Add average commit time to perf tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix bug with texture_upload_benchmark.py 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
« no previous file with comments | « no previous file | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CCLayerTreeHost_h 5 #ifndef CCLayerTreeHost_h
6 #define CCLayerTreeHost_h 6 #define CCLayerTreeHost_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCGraphicsContext.h" 9 #include "CCGraphicsContext.h"
10 #include "CCLayerTreeHostClient.h" 10 #include "CCLayerTreeHostClient.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Composites and attempts to read back the result into the provided 127 // Composites and attempts to read back the result into the provided
128 // buffer. If it wasn't possible, e.g. due to context lost, will return 128 // buffer. If it wasn't possible, e.g. due to context lost, will return
129 // false. 129 // false.
130 bool compositeAndReadback(void *pixels, const IntRect&); 130 bool compositeAndReadback(void *pixels, const IntRect&);
131 131
132 void finishAllRendering(); 132 void finishAllRendering();
133 133
134 int commitNumber() const { return m_commitNumber; } 134 int commitNumber() const { return m_commitNumber; }
135 135
136 void renderingStats(CCRenderingStats&) const; 136 void renderingStats(CCRenderingStats*) const;
137 137
138 const RendererCapabilities& rendererCapabilities() const; 138 const RendererCapabilities& rendererCapabilities() const;
139 139
140 // Test only hook 140 // Test only hook
141 void loseContext(int numTimes); 141 void loseContext(int numTimes);
142 142
143 void setNeedsAnimate(); 143 void setNeedsAnimate();
144 // virtual for testing 144 // virtual for testing
145 virtual void setNeedsCommit(); 145 virtual void setNeedsCommit();
146 void setNeedsRedraw(); 146 void setNeedsRedraw();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; 274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList;
275 TextureList m_deleteTextureAfterCommitList; 275 TextureList m_deleteTextureAfterCommitList;
276 size_t m_partialTextureUpdateRequests; 276 size_t m_partialTextureUpdateRequests;
277 277
278 static bool s_needsFilterContext; 278 static bool s_needsFilterContext;
279 }; 279 };
280 280
281 } 281 }
282 282
283 #endif 283 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698