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

Side by Side 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: fix HasFilterThatMovesPixels()/HasFilterThatAffectsOpacity() Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <algorithm> 5 #include <algorithm>
6 #include <cmath> 6 #include <cmath>
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h"
9 #include "cc/animation/transform_operation.h" 10 #include "cc/animation/transform_operation.h"
10 #include "ui/gfx/box_f.h" 11 #include "ui/gfx/box_f.h"
11 #include "ui/gfx/vector3d_f.h" 12 #include "ui/gfx/vector3d_f.h"
12 13
13 namespace { 14 namespace {
14 const double kAngleEpsilon = 1e-4; 15 const double kAngleEpsilon = 1e-4;
15 } 16 }
16 17
17 namespace cc { 18 namespace cc {
18 19
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } else if (!bounds_max.IsEmpty()) { 287 } else if (!bounds_max.IsEmpty()) {
287 UnionBoxWithZeroScale(&bounds_max); 288 UnionBoxWithZeroScale(&bounds_max);
288 *bounds = bounds_max; 289 *bounds = bounds_max;
289 } 290 }
290 291
291 return true; 292 return true;
292 } 293 }
293 case TransformOperation::TransformOperationIdentity: 294 case TransformOperation::TransformOperationIdentity:
294 *bounds = box; 295 *bounds = box;
295 return true; 296 return true;
296 default: 297 case TransformOperation::TransformOperationRotate:
298 case TransformOperation::TransformOperationSkew:
299 case TransformOperation::TransformOperationPerspective:
300 case TransformOperation::TransformOperationMatrix:
297 return false; 301 return false;
298 } 302 }
303 NOTREACHED();
304 return false;
299 } 305 }
300 306
301 } // namespace cc 307 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698