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

Side by Side Diff: cc/layer_impl.h

Issue 11830056: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@MakeLayerTreeHostAnimateLayersTakeWallClockTime
Patch Set: Fix nit 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
« 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 virtual ~LayerImpl(); 57 virtual ~LayerImpl();
58 58
59 int id() const; 59 int id() const;
60 60
61 // LayerAnimationValueObserver implementation. 61 // LayerAnimationValueObserver implementation.
62 virtual void OnOpacityAnimated(float) OVERRIDE; 62 virtual void OnOpacityAnimated(float) OVERRIDE;
63 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE; 63 virtual void OnTransformAnimated(const gfx::Transform&) OVERRIDE;
64 virtual bool IsActive() const OVERRIDE; 64 virtual bool IsActive() const OVERRIDE;
65 virtual bool IsOrphaned() const OVERRIDE;
65 66
66 // Tree structure. 67 // Tree structure.
67 LayerImpl* parent() { return m_parent; } 68 LayerImpl* parent() { return m_parent; }
68 const LayerImpl* parent() const { return m_parent; } 69 const LayerImpl* parent() const { return m_parent; }
69 const LayerList& children() const { return m_children; } 70 const LayerList& children() const { return m_children; }
70 void addChild(scoped_ptr<LayerImpl>); 71 void addChild(scoped_ptr<LayerImpl>);
71 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); 72 scoped_ptr<LayerImpl> removeChild(LayerImpl* child);
72 void removeAllChildren(); 73 void removeAllChildren();
73 74
74 void setMaskLayer(scoped_ptr<LayerImpl>); 75 void setMaskLayer(scoped_ptr<LayerImpl>);
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // Group of properties that need to be computed based on the layer tree 414 // Group of properties that need to be computed based on the layer tree
414 // hierarchy before layers can be drawn. 415 // hierarchy before layers can be drawn.
415 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 416 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
416 417
417 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 418 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
418 }; 419 };
419 420
420 } 421 }
421 422
422 #endif // CC_LAYER_IMPL_H_ 423 #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