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

Side by Side Diff: ui/gfx/transform_util.cc

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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
« no previous file with comments | « ui/gfx/transform_util.h ('k') | ui/gfx/transform_util_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gfx/transform_util.h" 5 #include "ui/gfx/transform_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "ui/gfx/point.h" 13 #include "ui/gfx/geometry/point.h"
14 #include "ui/gfx/point3_f.h" 14 #include "ui/gfx/geometry/point3_f.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 18
19 namespace { 19 namespace {
20 20
21 SkMScalar Length3(SkMScalar v[3]) { 21 SkMScalar Length3(SkMScalar v[3]) {
22 double vd[3] = {SkMScalarToDouble(v[0]), SkMScalarToDouble(v[1]), 22 double vd[3] = {SkMScalarToDouble(v[0]), SkMScalarToDouble(v[1]),
23 SkMScalarToDouble(v[2])}; 23 SkMScalarToDouble(v[2])};
24 return SkDoubleToMScalar( 24 return SkDoubleToMScalar(
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 perspective[1], 509 perspective[1],
510 perspective[2], 510 perspective[2],
511 perspective[3], 511 perspective[3],
512 quaternion[0], 512 quaternion[0],
513 quaternion[1], 513 quaternion[1],
514 quaternion[2], 514 quaternion[2],
515 quaternion[3]); 515 quaternion[3]);
516 } 516 }
517 517
518 } // namespace gfx 518 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/transform_util.h ('k') | ui/gfx/transform_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698