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

Side by Side Diff: cc/animation/transform_operations.h

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ANIMATION_TRANSFORM_OPERATIONS_H_ 5 #ifndef CC_ANIMATION_TRANSFORM_OPERATIONS_H_
6 #define CC_ANIMATION_TRANSFORM_OPERATIONS_H_ 6 #define CC_ANIMATION_TRANSFORM_OPERATIONS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SkMScalar min_progress, 56 SkMScalar min_progress,
57 SkMScalar max_progress, 57 SkMScalar max_progress,
58 gfx::BoxF* bounds) const; 58 gfx::BoxF* bounds) const;
59 59
60 // Returns true if these operations affect scale. 60 // Returns true if these operations affect scale.
61 bool AffectsScale() const; 61 bool AffectsScale() const;
62 62
63 // Returns true if these operations are only translations. 63 // Returns true if these operations are only translations.
64 bool IsTranslation() const; 64 bool IsTranslation() const;
65 65
66 // Returns false if the operations affect 2d axis alignment.
67 bool PreservesAxisAlignment() const;
68
66 // Returns true if this operation and its descendants have the same types 69 // Returns true if this operation and its descendants have the same types
67 // as other and its descendants. 70 // as other and its descendants.
68 bool MatchesTypes(const TransformOperations& other) const; 71 bool MatchesTypes(const TransformOperations& other) const;
69 72
70 // Returns true if these operations can be blended. It will only return 73 // Returns true if these operations can be blended. It will only return
71 // false if we must resort to matrix interpolation, and matrix interpolation 74 // false if we must resort to matrix interpolation, and matrix interpolation
72 // fails (this can happen if either matrix cannot be decomposed). 75 // fails (this can happen if either matrix cannot be decomposed).
73 bool CanBlendWith(const TransformOperations& other) const; 76 bool CanBlendWith(const TransformOperations& other) const;
74 77
75 // If these operations have no more than one scale operation, and if the only 78 // If these operations have no more than one scale operation, and if the only
(...skipping 22 matching lines...) Expand all
98 // For efficiency, we cache the decomposed transform. 101 // For efficiency, we cache the decomposed transform.
99 mutable scoped_ptr<gfx::DecomposedTransform> decomposed_transform_; 102 mutable scoped_ptr<gfx::DecomposedTransform> decomposed_transform_;
100 mutable bool decomposed_transform_dirty_; 103 mutable bool decomposed_transform_dirty_;
101 104
102 DISALLOW_ASSIGN(TransformOperations); 105 DISALLOW_ASSIGN(TransformOperations);
103 }; 106 };
104 107
105 } // namespace cc 108 } // namespace cc
106 109
107 #endif // CC_ANIMATION_TRANSFORM_OPERATIONS_H_ 110 #endif // CC_ANIMATION_TRANSFORM_OPERATIONS_H_
OLDNEW
« no previous file with comments | « cc/animation/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/animation/transform_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698