| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 void setTreePriority(TreePriority priority); | 257 void setTreePriority(TreePriority priority); |
| 258 | 258 |
| 259 void beginNextFrame(); | 259 void beginNextFrame(); |
| 260 base::TimeTicks currentFrameTime(); | 260 base::TimeTicks currentFrameTime(); |
| 261 | 261 |
| 262 scoped_ptr<base::Value> asValue() const; | 262 scoped_ptr<base::Value> asValue() const; |
| 263 scoped_ptr<base::Value> activationStateAsValue() const; | 263 scoped_ptr<base::Value> activationStateAsValue() const; |
| 264 scoped_ptr<base::Value> frameStateAsValue() const; | 264 scoped_ptr<base::Value> frameStateAsValue() const; |
| 265 | 265 |
| 266 LayerImpl* findLayerThatIsHitByPoint(const gfx::PointF& screenSpacePoint, co
nst std::vector<LayerImpl*>& renderSurfaceLayerList); |
| 267 |
| 266 protected: | 268 protected: |
| 267 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); | 269 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); |
| 268 void activatePendingTree(); | 270 void activatePendingTree(); |
| 269 | 271 |
| 270 // Virtual for testing. | 272 // Virtual for testing. |
| 271 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); | 273 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime); |
| 272 virtual void updateAnimationState(); | 274 virtual void updateAnimationState(); |
| 273 | 275 |
| 274 // Virtual for testing. | 276 // Virtual for testing. |
| 275 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 277 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 base::TimeTicks m_currentFrameTime; | 373 base::TimeTicks m_currentFrameTime; |
| 372 | 374 |
| 373 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 375 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 374 | 376 |
| 375 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 377 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 376 }; | 378 }; |
| 377 | 379 |
| 378 } // namespace cc | 380 } // namespace cc |
| 379 | 381 |
| 380 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 382 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |