| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 void SetPendingPageScaleAnimation( | 337 void SetPendingPageScaleAnimation( |
| 338 scoped_ptr<PendingPageScaleAnimation> pending_animation); | 338 scoped_ptr<PendingPageScaleAnimation> pending_animation); |
| 339 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 339 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 340 | 340 |
| 341 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); | 341 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 342 | 342 |
| 343 bool IsExternalFlingActive() const; | 343 bool IsExternalFlingActive() const; |
| 344 void DidUpdateScrollOffset(int layer_id); | 344 void DidUpdateScrollOffset(int layer_id); |
| 345 | 345 |
| 346 bool IsAnimatingFilterProperty(const LayerImpl* layer) const; |
| 347 bool IsAnimatingOpacityProperty(const LayerImpl* layer) const; |
| 348 bool IsAnimatingTransformProperty(const LayerImpl* layer) const; |
| 349 |
| 350 bool HasPotentiallyRunningOpacityAnimation(const LayerImpl* layer) const; |
| 351 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; |
| 352 |
| 353 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 354 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 355 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 356 |
| 357 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; |
| 358 |
| 359 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; |
| 360 |
| 361 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 362 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 363 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 364 |
| 365 bool FilterAnimationBoundsForBox(const LayerImpl* layer, |
| 366 const gfx::BoxF& box, |
| 367 gfx::BoxF* bounds) const; |
| 368 bool TransformAnimationBoundsForBox(const LayerImpl* layer, |
| 369 const gfx::BoxF& box, |
| 370 gfx::BoxF* bounds) const; |
| 371 |
| 346 protected: | 372 protected: |
| 347 explicit LayerTreeImpl( | 373 explicit LayerTreeImpl( |
| 348 LayerTreeHostImpl* layer_tree_host_impl, | 374 LayerTreeHostImpl* layer_tree_host_impl, |
| 349 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 375 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
| 350 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 376 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
| 351 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 377 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
| 352 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 378 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 353 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 379 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| 354 float min_page_scale_factor, | 380 float min_page_scale_factor, |
| 355 float max_page_scale_factor); | 381 float max_page_scale_factor); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 452 |
| 427 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 453 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 428 | 454 |
| 429 private: | 455 private: |
| 430 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 456 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 431 }; | 457 }; |
| 432 | 458 |
| 433 } // namespace cc | 459 } // namespace cc |
| 434 | 460 |
| 435 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 461 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |