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

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: Rebase on top of extracted changes. 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
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 LayerSettings; 61 class LayerSettings;
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
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);
432 435
433 void AddLayerAnimationEventObserver( 436 void AddLayerAnimationEventObserver(
434 LayerAnimationEventObserver* animation_observer); 437 LayerAnimationEventObserver* animation_observer);
435 void RemoveLayerAnimationEventObserver( 438 void RemoveLayerAnimationEventObserver(
436 LayerAnimationEventObserver* animation_observer); 439 LayerAnimationEventObserver* animation_observer);
437 440
438 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; 441 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const;
439 442
440 virtual ScrollbarLayerInterface* ToScrollbarLayer(); 443 virtual ScrollbarLayerInterface* ToScrollbarLayer();
441 444
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 770
768 std::vector<FrameTimingRequest> frame_timing_requests_; 771 std::vector<FrameTimingRequest> frame_timing_requests_;
769 bool frame_timing_requests_dirty_; 772 bool frame_timing_requests_dirty_;
770 773
771 DISALLOW_COPY_AND_ASSIGN(Layer); 774 DISALLOW_COPY_AND_ASSIGN(Layer);
772 }; 775 };
773 776
774 } // namespace cc 777 } // namespace cc
775 778
776 #endif // CC_LAYERS_LAYER_H_ 779 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698