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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11414017: cc: handling debug settings in new LayerTreeDebugState structure (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 170216 Created 8 years 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 | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.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 CC_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 void renderingStats(RenderingStats*) const; 249 void renderingStats(RenderingStats*) const;
250 250
251 void updateRootScrollLayerImplTransform(); 251 void updateRootScrollLayerImplTransform();
252 252
253 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } 253 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
254 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } 254 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; }
255 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } 255 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; }
256 Proxy* proxy() const { return m_proxy; } 256 Proxy* proxy() const { return m_proxy; }
257 257
258 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d ebugState; }
259 const LayerTreeDebugState& debugState() const { return m_debugState; }
260
258 class CC_EXPORT CullRenderPassesWithCachedTextures { 261 class CC_EXPORT CullRenderPassesWithCachedTextures {
259 public: 262 public:
260 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const; 263 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const;
261 264
262 // Iterates from the root first, in order to remove the surfaces closest 265 // Iterates from the root first, in order to remove the surfaces closest
263 // to the root with cached textures, and all surfaces that draw into 266 // to the root with cached textures, and all surfaces that draw into
264 // them. 267 // them.
265 size_t renderPassListBegin(const RenderPassList& list) const { return li st.size() - 1; } 268 size_t renderPassListBegin(const RenderPassList& list) const { return li st.size() - 1; }
266 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; } 269 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; }
267 size_t renderPassListNext(size_t it) const { return it - 1; } 270 size_t renderPassListNext(size_t it) const { return it - 1; }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 scoped_ptr<ResourceProvider> m_resourceProvider; 337 scoped_ptr<ResourceProvider> m_resourceProvider;
335 scoped_ptr<Renderer> m_renderer; 338 scoped_ptr<Renderer> m_renderer;
336 scoped_ptr<TileManager> m_tileManager; 339 scoped_ptr<TileManager> m_tileManager;
337 scoped_ptr<LayerImpl> m_rootLayerImpl; 340 scoped_ptr<LayerImpl> m_rootLayerImpl;
338 LayerImpl* m_rootScrollLayerImpl; 341 LayerImpl* m_rootScrollLayerImpl;
339 LayerImpl* m_currentlyScrollingLayerImpl; 342 LayerImpl* m_currentlyScrollingLayerImpl;
340 HeadsUpDisplayLayerImpl* m_hudLayerImpl; 343 HeadsUpDisplayLayerImpl* m_hudLayerImpl;
341 int m_scrollingLayerIdFromPreviousTree; 344 int m_scrollingLayerIdFromPreviousTree;
342 bool m_scrollDeltaIsInViewportSpace; 345 bool m_scrollDeltaIsInViewportSpace;
343 LayerTreeSettings m_settings; 346 LayerTreeSettings m_settings;
347 LayerTreeDebugState m_debugState;
344 gfx::Size m_layoutViewportSize; 348 gfx::Size m_layoutViewportSize;
345 gfx::Size m_deviceViewportSize; 349 gfx::Size m_deviceViewportSize;
346 float m_deviceScaleFactor; 350 float m_deviceScaleFactor;
347 bool m_visible; 351 bool m_visible;
348 bool m_contentsTexturesPurged; 352 bool m_contentsTexturesPurged;
349 ManagedMemoryPolicy m_managedMemoryPolicy; 353 ManagedMemoryPolicy m_managedMemoryPolicy;
350 354
351 SkColor m_backgroundColor; 355 SkColor m_backgroundColor;
352 bool m_hasTransparentBackground; 356 bool m_hasTransparentBackground;
353 357
(...skipping 22 matching lines...) Expand all
376 size_t m_numMainThreadScrolls; 380 size_t m_numMainThreadScrolls;
377 381
378 size_t m_cumulativeNumLayersInLayerTree; 382 size_t m_cumulativeNumLayersInLayerTree;
379 383
380 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
381 }; 385 };
382 386
383 } // namespace cc 387 } // namespace cc
384 388
385 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 389 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698