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

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

Issue 60083018: Don't PushProperties every commit for animating layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 virtual ~LayerImpl(); 71 virtual ~LayerImpl();
72 72
73 int id() const { return layer_id_; } 73 int id() const { return layer_id_; }
74 74
75 // LayerAnimationValueObserver implementation. 75 // LayerAnimationValueObserver implementation.
76 virtual void OnFilterAnimated(const FilterOperations& filters) OVERRIDE; 76 virtual void OnFilterAnimated(const FilterOperations& filters) OVERRIDE;
77 virtual void OnOpacityAnimated(float opacity) OVERRIDE; 77 virtual void OnOpacityAnimated(float opacity) OVERRIDE;
78 virtual void OnTransformAnimated(const gfx::Transform& transform) OVERRIDE; 78 virtual void OnTransformAnimated(const gfx::Transform& transform) OVERRIDE;
79 virtual void OnAnimationWaitingForDeletion() OVERRIDE;
79 virtual bool IsActive() const OVERRIDE; 80 virtual bool IsActive() const OVERRIDE;
80 81
81 // Tree structure. 82 // Tree structure.
82 LayerImpl* parent() { return parent_; } 83 LayerImpl* parent() { return parent_; }
83 const LayerImpl* parent() const { return parent_; } 84 const LayerImpl* parent() const { return parent_; }
84 const OwnedLayerImplList& children() const { return children_; } 85 const OwnedLayerImplList& children() const { return children_; }
85 OwnedLayerImplList& children() { return children_; } 86 OwnedLayerImplList& children() { return children_; }
86 LayerImpl* child_at(size_t index) const { return children_[index]; } 87 LayerImpl* child_at(size_t index) const { return children_[index]; }
87 void AddChild(scoped_ptr<LayerImpl> child); 88 void AddChild(scoped_ptr<LayerImpl> child);
88 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 89 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 // Group of properties that need to be computed based on the layer tree 631 // Group of properties that need to be computed based on the layer tree
631 // hierarchy before layers can be drawn. 632 // hierarchy before layers can be drawn.
632 DrawProperties<LayerImpl> draw_properties_; 633 DrawProperties<LayerImpl> draw_properties_;
633 634
634 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 635 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
635 }; 636 };
636 637
637 } // namespace cc 638 } // namespace cc
638 639
639 #endif // CC_LAYERS_LAYER_IMPL_H_ 640 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698