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