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

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

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Clean it up. Created 4 years, 3 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
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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 friend class LayerTreeHost; 559 friend class LayerTreeHost;
560 friend class LayerTree; 560 friend class LayerTree;
561 friend class LayerInternalsForTest; 561 friend class LayerInternalsForTest;
562 562
563 // Interactions with attached animations. 563 // Interactions with attached animations.
564 gfx::ScrollOffset ScrollOffsetForAnimation() const; 564 gfx::ScrollOffset ScrollOffsetForAnimation() const;
565 void OnFilterAnimated(const FilterOperations& filters); 565 void OnFilterAnimated(const FilterOperations& filters);
566 void OnOpacityAnimated(float opacity); 566 void OnOpacityAnimated(float opacity);
567 void OnTransformAnimated(const gfx::Transform& transform); 567 void OnTransformAnimated(const gfx::Transform& transform);
568 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 568 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
569 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); 569
570 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 570 void OnIsAnimatingChanged(const PropertyAnimationState& mask,
571 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 571 const PropertyAnimationState& state);
572 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
573 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating);
574 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation);
575 572
576 bool FilterIsAnimating() const; 573 bool FilterIsAnimating() const;
577 bool TransformIsAnimating() const; 574 bool TransformIsAnimating() const;
578 bool ScrollOffsetAnimationWasInterrupted() const; 575 bool ScrollOffsetAnimationWasInterrupted() const;
579 bool HasOnlyTranslationTransforms() const; 576 bool HasOnlyTranslationTransforms() const;
580 577
581 void AddScrollChild(Layer* child); 578 void AddScrollChild(Layer* child);
582 void RemoveScrollChild(Layer* child); 579 void RemoveScrollChild(Layer* child);
583 580
584 void AddClipChild(Layer* child); 581 void AddClipChild(Layer* child);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 // These all act like draw properties, so don't need push properties. 727 // These all act like draw properties, so don't need push properties.
731 gfx::Rect visible_layer_rect_; 728 gfx::Rect visible_layer_rect_;
732 size_t num_unclipped_descendants_; 729 size_t num_unclipped_descendants_;
733 730
734 DISALLOW_COPY_AND_ASSIGN(Layer); 731 DISALLOW_COPY_AND_ASSIGN(Layer);
735 }; 732 };
736 733
737 } // namespace cc 734 } // namespace cc
738 735
739 #endif // CC_LAYERS_LAYER_H_ 736 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698