Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: cc/layers/layer.h

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address observers attach/detach. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class Animation; 54 class Animation;
55 class AnimationDelegate; 55 class AnimationDelegate;
56 struct AnimationEvent; 56 struct AnimationEvent;
57 class CopyOutputRequest; 57 class CopyOutputRequest;
58 class LayerAnimationEventObserver; 58 class LayerAnimationEventObserver;
59 class LayerClient; 59 class LayerClient;
60 class LayerImpl; 60 class LayerImpl;
61 class LayerTreeHost; 61 class LayerTreeHost;
62 class LayerTreeHostCommon; 62 class LayerTreeHostCommon;
63 class LayerTreeImpl; 63 class LayerTreeImpl;
64 class LayerTreeSettings;
64 class PriorityCalculator; 65 class PriorityCalculator;
65 class RenderingStatsInstrumentation; 66 class RenderingStatsInstrumentation;
66 class ResourceUpdateQueue; 67 class ResourceUpdateQueue;
67 class ScrollbarLayerInterface; 68 class ScrollbarLayerInterface;
68 class SimpleEnclosedRegion; 69 class SimpleEnclosedRegion;
69 struct AnimationEvent; 70 struct AnimationEvent;
70 template <typename LayerType> 71 template <typename LayerType>
71 class OcclusionTracker; 72 class OcclusionTracker;
72 73
73 // Base class for composited layers. Special layer types are derived from 74 // Base class for composited layers. Special layer types are derived from
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 void RemoveAnimation(int animation_id); 418 void RemoveAnimation(int animation_id);
418 void RemoveAnimation(int animation_id, Animation::TargetProperty property); 419 void RemoveAnimation(int animation_id, Animation::TargetProperty property);
419 420
420 LayerAnimationController* layer_animation_controller() { 421 LayerAnimationController* layer_animation_controller() {
421 return layer_animation_controller_.get(); 422 return layer_animation_controller_.get();
422 } 423 }
423 void SetLayerAnimationControllerForTest( 424 void SetLayerAnimationControllerForTest(
424 scoped_refptr<LayerAnimationController> controller); 425 scoped_refptr<LayerAnimationController> controller);
425 426
426 void set_layer_animation_delegate(AnimationDelegate* delegate) { 427 void set_layer_animation_delegate(AnimationDelegate* delegate) {
428 DCHECK(layer_animation_controller_);
427 layer_animation_controller_->set_layer_animation_delegate(delegate); 429 layer_animation_controller_->set_layer_animation_delegate(delegate);
428 } 430 }
429 431
430 bool HasActiveAnimation() const; 432 bool HasActiveAnimation() const;
433 void RegisterForAnimations(AnimationRegistrar* registrar,
434 const LayerTreeSettings& settings);
431 435
432 void AddLayerAnimationEventObserver( 436 void AddLayerAnimationEventObserver(
433 LayerAnimationEventObserver* animation_observer); 437 LayerAnimationEventObserver* animation_observer);
434 void RemoveLayerAnimationEventObserver( 438 void RemoveLayerAnimationEventObserver(
435 LayerAnimationEventObserver* animation_observer); 439 LayerAnimationEventObserver* animation_observer);
436 440
437 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; 441 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const;
438 442
439 virtual ScrollbarLayerInterface* ToScrollbarLayer(); 443 virtual ScrollbarLayerInterface* ToScrollbarLayer();
440 444
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 758
755 std::vector<FrameTimingRequest> frame_timing_requests_; 759 std::vector<FrameTimingRequest> frame_timing_requests_;
756 bool frame_timing_requests_dirty_; 760 bool frame_timing_requests_dirty_;
757 761
758 DISALLOW_COPY_AND_ASSIGN(Layer); 762 DISALLOW_COPY_AND_ASSIGN(Layer);
759 }; 763 };
760 764
761 } // namespace cc 765 } // namespace cc
762 766
763 #endif // CC_LAYERS_LAYER_H_ 767 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698