| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |