| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 template<typename RenderPassCuller> | 298 template<typename RenderPassCuller> |
| 299 static void removeRenderPasses(RenderPassCuller, FrameData&); | 299 static void removeRenderPasses(RenderPassCuller, FrameData&); |
| 300 | 300 |
| 301 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
talPageScaleFactor(); } | 301 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
talPageScaleFactor(); } |
| 302 | 302 |
| 303 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp
ort; } | 303 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp
ort; } |
| 304 | 304 |
| 305 skia::RefPtr<SkPicture> capturePicture(); | 305 skia::RefPtr<SkPicture> capturePicture(); |
| 306 | 306 |
| 307 bool pinchGestureActive() const { return m_pinchGestureActive; } |
| 308 |
| 307 protected: | 309 protected: |
| 308 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); | 310 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); |
| 309 void activatePendingTree(); | 311 void activatePendingTree(); |
| 310 | 312 |
| 311 // Virtual for testing. | 313 // Virtual for testing. |
| 312 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); | 314 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); |
| 313 | 315 |
| 314 // Virtual for testing. | 316 // Virtual for testing. |
| 315 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 317 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
| 316 | 318 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 size_t m_lastSentMemoryUseBytes; | 398 size_t m_lastSentMemoryUseBytes; |
| 397 | 399 |
| 398 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 400 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 399 | 401 |
| 400 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 402 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 401 }; | 403 }; |
| 402 | 404 |
| 403 } // namespace cc | 405 } // namespace cc |
| 404 | 406 |
| 405 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 407 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |