| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |