| OLD | NEW |
| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } | 211 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } |
| 212 TopControlsManager* topControlsManager() const { return m_topControlsManager
.get(); } | 212 TopControlsManager* topControlsManager() const { return m_topControlsManager
.get(); } |
| 213 | 213 |
| 214 Proxy* proxy() const { return m_proxy; } | 214 Proxy* proxy() const { return m_proxy; } |
| 215 | 215 |
| 216 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } | 216 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } |
| 217 | 217 |
| 218 void setDebugState(const LayerTreeDebugState& debugState); | 218 void setDebugState(const LayerTreeDebugState& debugState); |
| 219 const LayerTreeDebugState& debugState() const { return m_debugState; } | 219 const LayerTreeDebugState& debugState() const { return m_debugState; } |
| 220 | 220 |
| 221 void savePaintTime(const base::TimeDelta& totalPaintTime); | 221 void savePaintTime(const base::TimeDelta& totalPaintTime, int commitNumber); |
| 222 | 222 |
| 223 class CC_EXPORT CullRenderPassesWithCachedTextures { | 223 class CC_EXPORT CullRenderPassesWithCachedTextures { |
| 224 public: | 224 public: |
| 225 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&)
const; | 225 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&)
const; |
| 226 | 226 |
| 227 // Iterates from the root first, in order to remove the surfaces closest | 227 // Iterates from the root first, in order to remove the surfaces closest |
| 228 // to the root with cached textures, and all surfaces that draw into | 228 // to the root with cached textures, and all surfaces that draw into |
| 229 // them. | 229 // them. |
| 230 size_t renderPassListBegin(const RenderPassList& list) const { return li
st.size() - 1; } | 230 size_t renderPassListBegin(const RenderPassList& list) const { return li
st.size() - 1; } |
| 231 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; } | 231 size_t renderPassListEnd(const RenderPassList&) const { return 0 - 1; } |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 base::TimeTicks m_currentFrameTime; | 371 base::TimeTicks m_currentFrameTime; |
| 372 | 372 |
| 373 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 373 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 374 | 374 |
| 375 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 375 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 } // namespace cc | 378 } // namespace cc |
| 379 | 379 |
| 380 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 380 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |