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

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

Issue 16431009: Use a direct include of strings headers in ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | « ui/gfx/text_utils.h ('k') | ui/gfx/vector2d.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 // MSVC++ requires this to be set before any other includes to get M_PI. 5 // MSVC++ requires this to be set before any other includes to get M_PI.
6 #define _USE_MATH_DEFINES 6 #define _USE_MATH_DEFINES
7 7
8 #include "ui/gfx/transform.h" 8 #include "ui/gfx/transform.h"
9 9
10 #include <cmath> 10 #include <cmath>
11 11
12 #include "base/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
14 #include "ui/gfx/point3_f.h" 14 #include "ui/gfx/point3_f.h"
15 #include "ui/gfx/vector3d_f.h"
16 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
17 #include "ui/gfx/safe_integer_conversions.h" 16 #include "ui/gfx/safe_integer_conversions.h"
18 #include "ui/gfx/skia_util.h" 17 #include "ui/gfx/skia_util.h"
19 #include "ui/gfx/transform_util.h" 18 #include "ui/gfx/transform_util.h"
19 #include "ui/gfx/vector3d_f.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 22
23 namespace { 23 namespace {
24 24
25 // Taken from SkMatrix44. 25 // Taken from SkMatrix44.
26 const double kTooSmallForDeterminant = 1e-8; 26 const double kTooSmallForDeterminant = 1e-8;
27 27
28 double TanDegrees(double degrees) { 28 double TanDegrees(double degrees) {
29 double radians = degrees * M_PI / 180; 29 double radians = degrees * M_PI / 180;
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 matrix_.getDouble(2, 1), 434 matrix_.getDouble(2, 1),
435 matrix_.getDouble(2, 2), 435 matrix_.getDouble(2, 2),
436 matrix_.getDouble(2, 3), 436 matrix_.getDouble(2, 3),
437 matrix_.getDouble(3, 0), 437 matrix_.getDouble(3, 0),
438 matrix_.getDouble(3, 1), 438 matrix_.getDouble(3, 1),
439 matrix_.getDouble(3, 2), 439 matrix_.getDouble(3, 2),
440 matrix_.getDouble(3, 3)); 440 matrix_.getDouble(3, 3));
441 } 441 }
442 442
443 } // namespace gfx 443 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/text_utils.h ('k') | ui/gfx/vector2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698