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

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

Issue 1957533002: cc : Track opacity animation changes on effect 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
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void SetMutableProperties(uint32_t properties); 498 void SetMutableProperties(uint32_t properties);
499 uint32_t mutable_properties() const { return mutable_properties_; } 499 uint32_t mutable_properties() const { return mutable_properties_; }
500 500
501 // Interactions with attached animations. 501 // Interactions with attached animations.
502 gfx::ScrollOffset ScrollOffsetForAnimation() const; 502 gfx::ScrollOffset ScrollOffsetForAnimation() const;
503 void OnFilterAnimated(const FilterOperations& filters); 503 void OnFilterAnimated(const FilterOperations& filters);
504 void OnOpacityAnimated(float opacity); 504 void OnOpacityAnimated(float opacity);
505 void OnTransformAnimated(const gfx::Transform& transform); 505 void OnTransformAnimated(const gfx::Transform& transform);
506 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 506 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
507 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 507 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
508 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
509 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
508 bool HasActiveAnimationForTesting() const; 510 bool HasActiveAnimationForTesting() const;
509 511
510 protected: 512 protected:
511 friend class LayerImpl; 513 friend class LayerImpl;
512 friend class TreeSynchronizer; 514 friend class TreeSynchronizer;
513 virtual ~Layer(); 515 virtual ~Layer();
514 Layer(); 516 Layer();
515 517
516 // These SetNeeds functions are in order of severity of update: 518 // These SetNeeds functions are in order of severity of update:
517 // 519 //
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // These all act like draw properties, so don't need push properties. 681 // These all act like draw properties, so don't need push properties.
680 gfx::Rect visible_layer_rect_; 682 gfx::Rect visible_layer_rect_;
681 size_t num_unclipped_descendants_; 683 size_t num_unclipped_descendants_;
682 684
683 DISALLOW_COPY_AND_ASSIGN(Layer); 685 DISALLOW_COPY_AND_ASSIGN(Layer);
684 }; 686 };
685 687
686 } // namespace cc 688 } // namespace cc
687 689
688 #endif // CC_LAYERS_LAYER_H_ 690 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698