OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class AnimationDelegate; | 55 class AnimationDelegate; |
56 struct AnimationEvent; | 56 struct AnimationEvent; |
57 class CopyOutputRequest; | 57 class CopyOutputRequest; |
58 class LayerAnimationDelegate; | 58 class LayerAnimationDelegate; |
59 class LayerAnimationEventObserver; | 59 class LayerAnimationEventObserver; |
60 class LayerClient; | 60 class LayerClient; |
61 class LayerImpl; | 61 class LayerImpl; |
62 class LayerTreeHost; | 62 class LayerTreeHost; |
63 class LayerTreeHostCommon; | 63 class LayerTreeHostCommon; |
64 class LayerTreeImpl; | 64 class LayerTreeImpl; |
| 65 class LayerTreeSettings; |
65 class PriorityCalculator; | 66 class PriorityCalculator; |
66 class RenderingStatsInstrumentation; | 67 class RenderingStatsInstrumentation; |
67 class ResourceUpdateQueue; | 68 class ResourceUpdateQueue; |
68 class ScrollbarLayerInterface; | 69 class ScrollbarLayerInterface; |
69 class SimpleEnclosedRegion; | 70 class SimpleEnclosedRegion; |
70 struct AnimationEvent; | 71 struct AnimationEvent; |
71 template <typename LayerType> | 72 template <typename LayerType> |
72 class OcclusionTracker; | 73 class OcclusionTracker; |
73 | 74 |
74 // Base class for composited layers. Special layer types are derived from | 75 // Base class for composited layers. Special layer types are derived from |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 void RemoveAnimation(int animation_id); | 419 void RemoveAnimation(int animation_id); |
419 void RemoveAnimation(int animation_id, Animation::TargetProperty property); | 420 void RemoveAnimation(int animation_id, Animation::TargetProperty property); |
420 | 421 |
421 LayerAnimationController* layer_animation_controller() { | 422 LayerAnimationController* layer_animation_controller() { |
422 return layer_animation_controller_.get(); | 423 return layer_animation_controller_.get(); |
423 } | 424 } |
424 void SetLayerAnimationControllerForTest( | 425 void SetLayerAnimationControllerForTest( |
425 scoped_refptr<LayerAnimationController> controller); | 426 scoped_refptr<LayerAnimationController> controller); |
426 | 427 |
427 void set_layer_animation_delegate(AnimationDelegate* delegate) { | 428 void set_layer_animation_delegate(AnimationDelegate* delegate) { |
| 429 DCHECK(layer_animation_controller_); |
428 layer_animation_controller_->set_layer_animation_delegate(delegate); | 430 layer_animation_controller_->set_layer_animation_delegate(delegate); |
429 } | 431 } |
430 | 432 |
431 bool HasActiveAnimation() const; | 433 bool HasActiveAnimation() const; |
| 434 void RegisterForAnimations(AnimationRegistrar* registrar, |
| 435 const LayerTreeSettings& settings); |
432 | 436 |
433 void AddLayerAnimationEventObserver( | 437 void AddLayerAnimationEventObserver( |
434 LayerAnimationEventObserver* animation_observer); | 438 LayerAnimationEventObserver* animation_observer); |
435 void RemoveLayerAnimationEventObserver( | 439 void RemoveLayerAnimationEventObserver( |
436 LayerAnimationEventObserver* animation_observer); | 440 LayerAnimationEventObserver* animation_observer); |
437 | 441 |
438 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; | 442 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; |
439 | 443 |
440 virtual ScrollbarLayerInterface* ToScrollbarLayer(); | 444 virtual ScrollbarLayerInterface* ToScrollbarLayer(); |
441 | 445 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 | 732 |
729 std::vector<FrameTimingRequest> frame_timing_requests_; | 733 std::vector<FrameTimingRequest> frame_timing_requests_; |
730 bool frame_timing_requests_dirty_; | 734 bool frame_timing_requests_dirty_; |
731 | 735 |
732 DISALLOW_COPY_AND_ASSIGN(Layer); | 736 DISALLOW_COPY_AND_ASSIGN(Layer); |
733 }; | 737 }; |
734 | 738 |
735 } // namespace cc | 739 } // namespace cc |
736 | 740 |
737 #endif // CC_LAYERS_LAYER_H_ | 741 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |