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

Side by Side Diff: cc/layers/layer.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/animation/layer_animation_value_observer.h ('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 10
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // Returns the index of the child or -1 if not found. 515 // Returns the index of the child or -1 if not found.
516 int IndexOfChild(const Layer* reference); 516 int IndexOfChild(const Layer* reference);
517 517
518 // This should only be called from RemoveFromParent(). 518 // This should only be called from RemoveFromParent().
519 void RemoveChildOrDependent(Layer* child); 519 void RemoveChildOrDependent(Layer* child);
520 520
521 // LayerAnimationValueObserver implementation. 521 // LayerAnimationValueObserver implementation.
522 virtual void OnFilterAnimated(const FilterOperations& filters) OVERRIDE; 522 virtual void OnFilterAnimated(const FilterOperations& filters) OVERRIDE;
523 virtual void OnOpacityAnimated(float opacity) OVERRIDE; 523 virtual void OnOpacityAnimated(float opacity) OVERRIDE;
524 virtual void OnTransformAnimated(const gfx::Transform& transform) OVERRIDE; 524 virtual void OnTransformAnimated(const gfx::Transform& transform) OVERRIDE;
525 virtual void OnAnimationWaitingForDeletion() OVERRIDE;
525 virtual bool IsActive() const OVERRIDE; 526 virtual bool IsActive() const OVERRIDE;
526 527
527 LayerList children_; 528 LayerList children_;
528 Layer* parent_; 529 Layer* parent_;
529 530
530 // Layer instances have a weak pointer to their LayerTreeHost. 531 // Layer instances have a weak pointer to their LayerTreeHost.
531 // This pointer value is nil when a Layer is not in a tree and is 532 // This pointer value is nil when a Layer is not in a tree and is
532 // updated via SetLayerTreeHost() if a layer moves between trees. 533 // updated via SetLayerTreeHost() if a layer moves between trees.
533 LayerTreeHost* layer_tree_host_; 534 LayerTreeHost* layer_tree_host_;
534 535
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 DrawProperties<Layer> draw_properties_; 590 DrawProperties<Layer> draw_properties_;
590 591
591 PaintProperties paint_properties_; 592 PaintProperties paint_properties_;
592 593
593 DISALLOW_COPY_AND_ASSIGN(Layer); 594 DISALLOW_COPY_AND_ASSIGN(Layer);
594 }; 595 };
595 596
596 } // namespace cc 597 } // namespace cc
597 598
598 #endif // CC_LAYERS_LAYER_H_ 599 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_value_observer.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698