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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12209022: cc: add rasterize time to continuous painting graph data in impl-side-painting (Closed) Base URL: http://git.chromium.org/chromium/src.git@raster
Patch Set: Save paint and rasterize time in per frame struct Created 7 years, 10 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 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } 212 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; }
213 TopControlsManager* topControlsManager() const { return m_topControlsManager .get(); } 213 TopControlsManager* topControlsManager() const { return m_topControlsManager .get(); }
214 214
215 Proxy* proxy() const { return m_proxy; } 215 Proxy* proxy() const { return m_proxy; }
216 216
217 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); } 217 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); }
218 218
219 void setDebugState(const LayerTreeDebugState& debugState); 219 void setDebugState(const LayerTreeDebugState& debugState);
220 const LayerTreeDebugState& debugState() const { return m_debugState; } 220 const LayerTreeDebugState& debugState() const { return m_debugState; }
221 221
222 void savePaintTime(const base::TimeDelta& totalPaintTime); 222 void savePaintTime(const base::TimeDelta& totalPaintTime, const int& frameNu mber);
223 223
224 class CC_EXPORT CullRenderPassesWithCachedTextures { 224 class CC_EXPORT CullRenderPassesWithCachedTextures {
225 public: 225 public:
226 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const; 226 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const;
227 227
228 // Iterates from the root first, in order to remove the surfaces closest 228 // Iterates from the root first, in order to remove the surfaces closest
229 // to the root with cached textures, and all surfaces that draw into 229 // to the root with cached textures, and all surfaces that draw into
230 // them. 230 // them.
231 size_t renderPassListBegin(const RenderPassList& list) const { return li st.size() - 1; } 231 size_t renderPassListBegin(const RenderPassList& list) const { return li st.size() - 1; }
232 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; } 232 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 base::TimeTicks m_currentFrameTime; 368 base::TimeTicks m_currentFrameTime;
369 369
370 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 370 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
371 371
372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
373 }; 373 };
374 374
375 } // namespace cc 375 } // namespace cc
376 376
377 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 377 #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') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698