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

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

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/animation/transform_operation.cc ('k') | cc/animation/transform_operations_unittest.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 "cc/animation/transform_operations.h" 5 #include "cc/animation/transform_operations.h"
6
7 #include <algorithm>
8
6 #include "ui/gfx/transform_util.h" 9 #include "ui/gfx/transform_util.h"
7 #include "ui/gfx/vector3d_f.h" 10 #include "ui/gfx/vector3d_f.h"
8 11
9 namespace cc { 12 namespace cc {
10 13
11 TransformOperations::TransformOperations() 14 TransformOperations::TransformOperations()
12 : decomposed_transform_dirty_(true) { 15 : decomposed_transform_dirty_(true) {
13 } 16 }
14 17
15 TransformOperations::TransformOperations(const TransformOperations& other) { 18 TransformOperations::TransformOperations(const TransformOperations& other) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 decomposed_transform_.reset(new gfx::DecomposedTransform()); 194 decomposed_transform_.reset(new gfx::DecomposedTransform());
192 gfx::Transform transform = Apply(); 195 gfx::Transform transform = Apply();
193 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform)) 196 if (!gfx::DecomposeTransform(decomposed_transform_.get(), transform))
194 return false; 197 return false;
195 decomposed_transform_dirty_ = false; 198 decomposed_transform_dirty_ = false;
196 } 199 }
197 return true; 200 return true;
198 } 201 }
199 202
200 } // namespace cc 203 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/transform_operation.cc ('k') | cc/animation/transform_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698