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

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

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Reparent. Created 4 years, 2 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/animation/target_property.cc ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 friend class LayerTreeHost; 552 friend class LayerTreeHost;
553 friend class LayerTree; 553 friend class LayerTree;
554 friend class LayerInternalsForTest; 554 friend class LayerInternalsForTest;
555 555
556 // Interactions with attached animations. 556 // Interactions with attached animations.
557 gfx::ScrollOffset ScrollOffsetForAnimation() const; 557 gfx::ScrollOffset ScrollOffsetForAnimation() const;
558 void OnFilterAnimated(const FilterOperations& filters); 558 void OnFilterAnimated(const FilterOperations& filters);
559 void OnOpacityAnimated(float opacity); 559 void OnOpacityAnimated(float opacity);
560 void OnTransformAnimated(const gfx::Transform& transform); 560 void OnTransformAnimated(const gfx::Transform& transform);
561 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 561 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
562 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); 562
563 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 563 void OnIsAnimatingChanged(const PropertyAnimationState& mask,
564 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 564 const PropertyAnimationState& state);
565 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
566 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating);
567 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation);
568 565
569 bool FilterIsAnimating() const; 566 bool FilterIsAnimating() const;
570 bool TransformIsAnimating() const; 567 bool TransformIsAnimating() const;
571 bool ScrollOffsetAnimationWasInterrupted() const; 568 bool ScrollOffsetAnimationWasInterrupted() const;
572 bool HasOnlyTranslationTransforms() const; 569 bool HasOnlyTranslationTransforms() const;
573 570
574 void AddScrollChild(Layer* child); 571 void AddScrollChild(Layer* child);
575 void RemoveScrollChild(Layer* child); 572 void RemoveScrollChild(Layer* child);
576 573
577 void AddClipChild(Layer* child); 574 void AddClipChild(Layer* child);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // These all act like draw properties, so don't need push properties. 718 // These all act like draw properties, so don't need push properties.
722 gfx::Rect visible_layer_rect_; 719 gfx::Rect visible_layer_rect_;
723 size_t num_unclipped_descendants_; 720 size_t num_unclipped_descendants_;
724 721
725 DISALLOW_COPY_AND_ASSIGN(Layer); 722 DISALLOW_COPY_AND_ASSIGN(Layer);
726 }; 723 };
727 724
728 } // namespace cc 725 } // namespace cc
729 726
730 #endif // CC_LAYERS_LAYER_H_ 727 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/animation/target_property.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698