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

Side by Side Diff: cc/layer_impl.h

Issue 11783037: Not for review: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wait for layout to complete before starting orphaned animations Created 7 years, 10 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 LayerList& children() { return m_children; } 71 LayerList& children() { return m_children; }
71 LayerImpl* childAt(size_t index) const; 72 LayerImpl* childAt(size_t index) const;
72 void addChild(scoped_ptr<LayerImpl>); 73 void addChild(scoped_ptr<LayerImpl>);
73 scoped_ptr<LayerImpl> removeChild(LayerImpl* child); 74 scoped_ptr<LayerImpl> removeChild(LayerImpl* child);
74 void removeAllChildren(); 75 void removeAllChildren();
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // Group of properties that need to be computed based on the layer tree 428 // Group of properties that need to be computed based on the layer tree
428 // hierarchy before layers can be drawn. 429 // hierarchy before layers can be drawn.
429 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 430 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
430 431
431 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 432 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
432 }; 433 };
433 434
434 } 435 }
435 436
436 #endif // CC_LAYER_IMPL_H_ 437 #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