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

Side by Side Diff: cc/layer_impl.h

Issue 11633044: We don't want to tick animation controllers for non-active layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding the suggested TODO. Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_animation_value_observer.h ('k') | cc/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_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return make_scoped_ptr(new LayerImpl(treeImpl, id)); 53 return make_scoped_ptr(new LayerImpl(treeImpl, id));
54 } 54 }
55 55
56 virtual ~LayerImpl(); 56 virtual ~LayerImpl();
57 57
58 int id() const; 58 int id() const;
59 59
60 // LayerAnimationValueObserver implementation. 60 // LayerAnimationValueObserver implementation.
61 virtual void OnOpacityAnimated(float) OVERRIDE; 61 virtual void OnOpacityAnimated(float) OVERRIDE;
62 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; 62 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE;
63 virtual bool IsActive() const OVERRIDE;
63 64
64 // Tree structure. 65 // Tree structure.
65 LayerImpl* parent() { return m_parent; } 66 LayerImpl* parent() { return m_parent; }
66 const LayerImpl* parent() const { return m_parent; } 67 const LayerImpl* parent() const { return m_parent; }
67 const LayerList& children() const { return m_children; } 68 const LayerList& children() const { return m_children; }
68 void addChild(scoped_ptr<LayerImpl>); 69 void addChild(scoped_ptr<LayerImpl>);
69 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); 70 scoped_ptr<LayerImpl> removeChild(LayerImpl* child);
70 void removeAllChildren(); 71 void removeAllChildren();
71 72
72 void setMaskLayer(scoped_ptr<LayerImpl>); 73 void setMaskLayer(scoped_ptr<LayerImpl>);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Group of properties that need to be computed based on the layer tree 399 // Group of properties that need to be computed based on the layer tree
399 // hierarchy before layers can be drawn. 400 // hierarchy before layers can be drawn.
400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 401 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
401 402
402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 403 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
403 }; 404 };
404 405
405 } 406 }
406 407
407 #endif // CC_LAYER_IMPL_H_ 408 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_animation_value_observer.h ('k') | cc/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698