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

Unified Diff: cc/animation/transform_operation.cc

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove changes to enums that require arraysize Created 7 years, 4 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/output/filter_operation.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/transform_operation.cc
diff --git a/cc/animation/transform_operation.cc b/cc/animation/transform_operation.cc
index b7bb0631c821fc458f2bfe9c55a70eb5979712ae..73892e5cec1a3a9aaab6aeb2bc177caba64f19b3 100644
--- a/cc/animation/transform_operation.cc
+++ b/cc/animation/transform_operation.cc
@@ -293,9 +293,13 @@ bool TransformOperation::BlendedBoundsForBox(const gfx::BoxF& box,
case TransformOperation::TransformOperationIdentity:
*bounds = box;
return true;
- default:
- return false;
+ case TransformOperation::TransformOperationRotate:
+ case TransformOperation::TransformOperationSkew:
+ case TransformOperation::TransformOperationPerspective:
+ case TransformOperation::TransformOperationMatrix:
+ break;
danakj 2013/08/26 15:55:39 can you return false here and NOTREACHED() below?
reveman 2013/08/26 17:16:57 Done.
}
+ return false;
}
} // namespace cc
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/output/filter_operation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698