| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( | 105 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( |
| 106 int scroll_layer_id); | 106 int scroll_layer_id); |
| 107 void DidAnimateScrollOffset(); | 107 void DidAnimateScrollOffset(); |
| 108 void InputScrollAnimationFinished(); | 108 void InputScrollAnimationFinished(); |
| 109 bool use_gpu_rasterization() const; | 109 bool use_gpu_rasterization() const; |
| 110 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 110 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
| 111 bool create_low_res_tiling() const; | 111 bool create_low_res_tiling() const; |
| 112 bool RequiresHighResToDraw() const; | 112 bool RequiresHighResToDraw() const; |
| 113 bool SmoothnessTakesPriority() const; | 113 bool SmoothnessTakesPriority() const; |
| 114 VideoFrameControllerClient* GetVideoFrameControllerClient() const; | 114 VideoFrameControllerClient* GetVideoFrameControllerClient() const; |
| 115 AnimationHost* animation_host() const { |
| 116 return layer_tree_host_impl_->animation_host(); |
| 117 } |
| 115 | 118 |
| 116 // Tree specific methods exposed to layer-impl tree. | 119 // Tree specific methods exposed to layer-impl tree. |
| 117 // --------------------------------------------------------------------------- | 120 // --------------------------------------------------------------------------- |
| 118 void SetNeedsRedraw(); | 121 void SetNeedsRedraw(); |
| 119 | 122 |
| 120 // Tracing methods. | 123 // Tracing methods. |
| 121 // --------------------------------------------------------------------------- | 124 // --------------------------------------------------------------------------- |
| 122 void GetAllPrioritizedTilesForTracing( | 125 void GetAllPrioritizedTilesForTracing( |
| 123 std::vector<PrioritizedTile>* prioritized_tiles) const; | 126 std::vector<PrioritizedTile>* prioritized_tiles) const; |
| 124 void AsValueInto(base::trace_event::TracedValue* dict) const; | 127 void AsValueInto(base::trace_event::TracedValue* dict) const; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 413 |
| 411 bool HasPotentiallyRunningFilterAnimation(const LayerImpl* layer) const; | 414 bool HasPotentiallyRunningFilterAnimation(const LayerImpl* layer) const; |
| 412 bool HasPotentiallyRunningOpacityAnimation(const LayerImpl* layer) const; | 415 bool HasPotentiallyRunningOpacityAnimation(const LayerImpl* layer) const; |
| 413 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; | 416 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; |
| 414 | 417 |
| 415 bool HasAnyAnimationTargetingProperty(const LayerImpl* layer, | 418 bool HasAnyAnimationTargetingProperty(const LayerImpl* layer, |
| 416 TargetProperty::Type property) const; | 419 TargetProperty::Type property) const; |
| 417 | 420 |
| 418 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 421 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 419 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 422 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 423 bool ScrollOffsetIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 420 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 424 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 421 | 425 |
| 422 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | 426 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; |
| 423 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; | 427 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; |
| 424 | 428 |
| 425 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; | 429 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; |
| 426 bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const; | 430 bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const; |
| 427 | 431 |
| 428 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; | 432 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 429 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; | 433 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 558 |
| 555 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 559 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 556 | 560 |
| 557 private: | 561 private: |
| 558 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 562 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 559 }; | 563 }; |
| 560 | 564 |
| 561 } // namespace cc | 565 } // namespace cc |
| 562 | 566 |
| 563 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 567 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |