| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 size_t renderPassListNext(size_t it) const { return it + 1; } | 293 size_t renderPassListNext(size_t it) const { return it + 1; } |
| 294 }; | 294 }; |
| 295 | 295 |
| 296 template<typename RenderPassCuller> | 296 template<typename RenderPassCuller> |
| 297 static void removeRenderPasses(RenderPassCuller, FrameData&); | 297 static void removeRenderPasses(RenderPassCuller, FrameData&); |
| 298 | 298 |
| 299 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
talPageScaleFactor(); } | 299 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
talPageScaleFactor(); } |
| 300 | 300 |
| 301 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp
ort; } | 301 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp
ort; } |
| 302 | 302 |
| 303 bool pinchGestureActive() const { return m_pinchGestureActive; } |
| 304 |
| 303 protected: | 305 protected: |
| 304 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); | 306 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); |
| 305 void activatePendingTree(); | 307 void activatePendingTree(); |
| 306 | 308 |
| 307 // Virtual for testing. | 309 // Virtual for testing. |
| 308 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); | 310 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); |
| 309 | 311 |
| 310 // Virtual for testing. | 312 // Virtual for testing. |
| 311 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 313 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
| 312 | 314 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 size_t m_lastSentMemoryUseBytes; | 392 size_t m_lastSentMemoryUseBytes; |
| 391 | 393 |
| 392 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 394 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 393 | 395 |
| 394 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 395 }; | 397 }; |
| 396 | 398 |
| 397 } // namespace cc | 399 } // namespace cc |
| 398 | 400 |
| 399 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 401 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |