| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 void SetPendingPageScaleAnimation( | 333 void SetPendingPageScaleAnimation( |
| 334 scoped_ptr<PendingPageScaleAnimation> pending_animation); | 334 scoped_ptr<PendingPageScaleAnimation> pending_animation); |
| 335 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 335 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 336 | 336 |
| 337 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); | 337 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 338 | 338 |
| 339 bool IsExternalFlingActive() const; | 339 bool IsExternalFlingActive() const; |
| 340 void DidUpdateScrollOffset(int layer_id); | 340 void DidUpdateScrollOffset(int layer_id); |
| 341 | 341 |
| 342 bool IsAnimatingFilterProperty(const LayerImpl* layer) const; |
| 343 bool IsAnimatingOpacityProperty(const LayerImpl* layer) const; |
| 344 bool IsAnimatingTransformProperty(const LayerImpl* layer) const; |
| 345 |
| 346 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 347 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 348 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 349 |
| 350 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; |
| 351 |
| 352 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; |
| 353 |
| 354 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 355 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 356 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 357 |
| 358 bool FilterAnimationBoundsForBox(const LayerImpl* layer, |
| 359 const gfx::BoxF& box, |
| 360 gfx::BoxF* bounds) const; |
| 361 bool TransformAnimationBoundsForBox(const LayerImpl* layer, |
| 362 const gfx::BoxF& box, |
| 363 gfx::BoxF* bounds) const; |
| 364 |
| 342 protected: | 365 protected: |
| 343 explicit LayerTreeImpl( | 366 explicit LayerTreeImpl( |
| 344 LayerTreeHostImpl* layer_tree_host_impl, | 367 LayerTreeHostImpl* layer_tree_host_impl, |
| 345 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 368 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
| 346 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 369 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
| 347 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 370 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
| 348 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 371 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 349 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 372 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| 350 float min_page_scale_factor, | 373 float min_page_scale_factor, |
| 351 float max_page_scale_factor); | 374 float max_page_scale_factor); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 445 |
| 423 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 446 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 424 | 447 |
| 425 private: | 448 private: |
| 426 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 449 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 427 }; | 450 }; |
| 428 | 451 |
| 429 } // namespace cc | 452 } // namespace cc |
| 430 | 453 |
| 431 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 454 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |