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

Unified Diff: cc/animation/transform_operations.cc

Issue 2388943002: cc: Delete unused AnimationCurve::AffectsScale and related code (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/transform_operations.h ('k') | cc/animation/transform_operations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/transform_operations.cc
diff --git a/cc/animation/transform_operations.cc b/cc/animation/transform_operations.cc
index 55a23abec68d9fa3291e9fc92229da5008e16ffe..1aa616975b10dae092a494301a53591783ced3c5 100644
--- a/cc/animation/transform_operations.cc
+++ b/cc/animation/transform_operations.cc
@@ -84,17 +84,6 @@ bool TransformOperations::BlendedBoundsForBox(const gfx::BoxF& box,
return true;
}
-bool TransformOperations::AffectsScale() const {
- for (size_t i = 0; i < operations_.size(); ++i) {
- if (operations_[i].type == TransformOperation::TRANSFORM_OPERATION_SCALE)
- return true;
- if (operations_[i].type == TransformOperation::TRANSFORM_OPERATION_MATRIX &&
- !operations_[i].matrix.IsIdentityOrTranslation())
- return true;
- }
- return false;
-}
-
bool TransformOperations::PreservesAxisAlignment() const {
for (size_t i = 0; i < operations_.size(); ++i) {
switch (operations_[i].type) {
« no previous file with comments | « cc/animation/transform_operations.h ('k') | cc/animation/transform_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698