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

Side by Side Diff: cc/layer_tree_host.h

Issue 11198005: NOT READY FOR REVIEW - switch to a subscriber model for rendering stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing file. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host.cc » ('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 <limits> 8 #include <limits>
9 9
10 #include "IntRect.h" 10 #include "IntRect.h"
(...skipping 29 matching lines...) Expand all
40 namespace cc { 40 namespace cc {
41 41
42 class FontAtlas; 42 class FontAtlas;
43 class Layer; 43 class Layer;
44 class LayerTreeHostImpl; 44 class LayerTreeHostImpl;
45 class LayerTreeHostImplClient; 45 class LayerTreeHostImplClient;
46 class PrioritizedTextureManager; 46 class PrioritizedTextureManager;
47 class ResourceUpdateQueue; 47 class ResourceUpdateQueue;
48 class HeadsUpDisplayLayer; 48 class HeadsUpDisplayLayer;
49 class Region; 49 class Region;
50 class RenderingStatsSubscriber;
50 struct ScrollAndScaleSet; 51 struct ScrollAndScaleSet;
51 52
52 struct LayerTreeSettings { 53 struct LayerTreeSettings {
53 LayerTreeSettings(); 54 LayerTreeSettings();
54 ~LayerTreeSettings(); 55 ~LayerTreeSettings();
55 56
56 bool acceleratePainting; 57 bool acceleratePainting;
57 bool showFPSCounter; 58 bool showFPSCounter;
58 bool showPlatformLayerTree; 59 bool showPlatformLayerTree;
59 bool showPaintRects; 60 bool showPaintRects;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 192
192 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, base::TimeDelta duration); 193 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, base::TimeDelta duration);
193 194
194 void applyScrollAndScale(const ScrollAndScaleSet&); 195 void applyScrollAndScale(const ScrollAndScaleSet&);
195 FloatPoint adjustEventPointForPinchZoom(const FloatPoint&) const; 196 FloatPoint adjustEventPointForPinchZoom(const FloatPoint&) const;
196 void setImplTransform(const WebKit::WebTransformationMatrix&); 197 void setImplTransform(const WebKit::WebTransformationMatrix&);
197 198
198 void startRateLimiter(WebKit::WebGraphicsContext3D*); 199 void startRateLimiter(WebKit::WebGraphicsContext3D*);
199 void stopRateLimiter(WebKit::WebGraphicsContext3D*); 200 void stopRateLimiter(WebKit::WebGraphicsContext3D*);
200 201
202 void startRecordingRenderingStats();
203 // This function will remove the running subscriber, and populate the given
204 // rendering stats object.
205 void stopRecordingRenderingStats(RenderingStats*);
206
201 // RateLimitClient implementation 207 // RateLimitClient implementation
202 virtual void rateLimit() OVERRIDE; 208 virtual void rateLimit() OVERRIDE;
203 209
204 bool bufferedUpdates(); 210 bool bufferedUpdates();
205 bool requestPartialTextureUpdate(); 211 bool requestPartialTextureUpdate();
206 212
207 void setDeviceScaleFactor(float); 213 void setDeviceScaleFactor(float);
208 float deviceScaleFactor() const { return m_deviceScaleFactor; } 214 float deviceScaleFactor() const { return m_deviceScaleFactor; }
209 215
210 void setFontAtlas(scoped_ptr<FontAtlas>); 216 void setFontAtlas(scoped_ptr<FontAtlas>);
(...skipping 26 matching lines...) Expand all
237 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base: :Time wallClockTime); 243 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base: :Time wallClockTime);
238 244
239 bool m_animating; 245 bool m_animating;
240 bool m_needsAnimateLayers; 246 bool m_needsAnimateLayers;
241 247
242 base::CancelableClosure m_prepaintCallback; 248 base::CancelableClosure m_prepaintCallback;
243 249
244 LayerTreeHostClient* m_client; 250 LayerTreeHostClient* m_client;
245 251
246 int m_commitNumber; 252 int m_commitNumber;
253 // TODO(vollick): Nuke this once we've switched to the subscriber model.
247 RenderingStats m_renderingStats; 254 RenderingStats m_renderingStats;
255 scoped_ptr<RenderingStatsSubscriber> m_renderingStatsSubscriber;
248 256
249 scoped_ptr<Proxy> m_proxy; 257 scoped_ptr<Proxy> m_proxy;
250 bool m_rendererInitialized; 258 bool m_rendererInitialized;
251 bool m_contextLost; 259 bool m_contextLost;
252 int m_numTimesRecreateShouldFail; 260 int m_numTimesRecreateShouldFail;
253 int m_numFailedRecreateAttempts; 261 int m_numFailedRecreateAttempts;
254 262
255 scoped_refptr<Layer> m_rootLayer; 263 scoped_refptr<Layer> m_rootLayer;
256 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer; 264 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer;
257 scoped_ptr<FontAtlas> m_fontAtlas; 265 scoped_ptr<FontAtlas> m_fontAtlas;
(...skipping 24 matching lines...) Expand all
282 size_t m_partialTextureUpdateRequests; 290 size_t m_partialTextureUpdateRequests;
283 291
284 static bool s_needsFilterContext; 292 static bool s_needsFilterContext;
285 293
286 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 294 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
287 }; 295 };
288 296
289 } // namespace cc 297 } // namespace cc
290 298
291 #endif 299 #endif
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698