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

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

Issue 2758343002: cc: Use Element Id to Record Animation Changes (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 friend class LayerTreeHost; 494 friend class LayerTreeHost;
495 friend class LayerInternalsForTest; 495 friend class LayerInternalsForTest;
496 496
497 // Interactions with attached animations. 497 // Interactions with attached animations.
498 gfx::ScrollOffset ScrollOffsetForAnimation() const; 498 gfx::ScrollOffset ScrollOffsetForAnimation() const;
499 void OnFilterAnimated(const FilterOperations& filters); 499 void OnFilterAnimated(const FilterOperations& filters);
500 void OnOpacityAnimated(float opacity); 500 void OnOpacityAnimated(float opacity);
501 void OnTransformAnimated(const gfx::Transform& transform); 501 void OnTransformAnimated(const gfx::Transform& transform);
502 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 502 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
503 503
504 void OnIsAnimatingChanged(const PropertyAnimationState& mask,
505 const PropertyAnimationState& state);
506
507 bool FilterIsAnimating() const; 504 bool FilterIsAnimating() const;
508 bool TransformIsAnimating() const; 505 bool TransformIsAnimating() const;
509 bool ScrollOffsetAnimationWasInterrupted() const; 506 bool ScrollOffsetAnimationWasInterrupted() const;
510 bool HasOnlyTranslationTransforms() const; 507 bool HasOnlyTranslationTransforms() const;
511 508
512 void AddScrollChild(Layer* child); 509 void AddScrollChild(Layer* child);
513 void RemoveScrollChild(Layer* child); 510 void RemoveScrollChild(Layer* child);
514 511
515 void AddClipChild(Layer* child); 512 void AddClipChild(Layer* child);
516 void RemoveClipChild(Layer* child); 513 void RemoveClipChild(Layer* child);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 // These all act like draw properties, so don't need push properties. 663 // These all act like draw properties, so don't need push properties.
667 gfx::Rect visible_layer_rect_; 664 gfx::Rect visible_layer_rect_;
668 size_t num_unclipped_descendants_; 665 size_t num_unclipped_descendants_;
669 666
670 DISALLOW_COPY_AND_ASSIGN(Layer); 667 DISALLOW_COPY_AND_ASSIGN(Layer);
671 }; 668 };
672 669
673 } // namespace cc 670 } // namespace cc
674 671
675 #endif // CC_LAYERS_LAYER_H_ 672 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698