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

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

Issue 1987123002: cc : Track transform animation changes on transform tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/element_animations_unittest.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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 488
489 void SetMutableProperties(uint32_t properties); 489 void SetMutableProperties(uint32_t properties);
490 uint32_t mutable_properties() const { return mutable_properties_; } 490 uint32_t mutable_properties() const { return mutable_properties_; }
491 491
492 // Interactions with attached animations. 492 // Interactions with attached animations.
493 gfx::ScrollOffset ScrollOffsetForAnimation() const; 493 gfx::ScrollOffset ScrollOffsetForAnimation() const;
494 void OnFilterAnimated(const FilterOperations& filters); 494 void OnFilterAnimated(const FilterOperations& filters);
495 void OnOpacityAnimated(float opacity); 495 void OnOpacityAnimated(float opacity);
496 void OnTransformAnimated(const gfx::Transform& transform); 496 void OnTransformAnimated(const gfx::Transform& transform);
497 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 497 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
498 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating);
498 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 499 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
499 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 500 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
500 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); 501 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
501 bool HasActiveAnimationForTesting() const; 502 bool HasActiveAnimationForTesting() const;
502 503
503 void SetHasWillChangeTransformHint(bool has_will_change); 504 void SetHasWillChangeTransformHint(bool has_will_change);
504 bool has_will_change_transform_hint() const { 505 bool has_will_change_transform_hint() const {
505 return has_will_change_transform_hint_; 506 return has_will_change_transform_hint_;
506 } 507 }
507 508
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // These all act like draw properties, so don't need push properties. 678 // These all act like draw properties, so don't need push properties.
678 gfx::Rect visible_layer_rect_; 679 gfx::Rect visible_layer_rect_;
679 size_t num_unclipped_descendants_; 680 size_t num_unclipped_descendants_;
680 681
681 DISALLOW_COPY_AND_ASSIGN(Layer); 682 DISALLOW_COPY_AND_ASSIGN(Layer);
682 }; 683 };
683 684
684 } // namespace cc 685 } // namespace cc
685 686
686 #endif // CC_LAYERS_LAYER_H_ 687 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/animation/element_animations_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698