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

Side by Side Diff: cc/base/math_util.h

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_MATH_UTIL_H_ 5 #ifndef CC_BASE_MATH_UTIL_H_
6 #define CC_MATH_UTIL_H_ 6 #define CC_BASE_MATH_UTIL_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "cc/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "ui/gfx/point3_f.h"
13 #include "ui/gfx/point_f.h" 14 #include "ui/gfx/point_f.h"
14 #include "ui/gfx/point3_f.h"
15 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
16 #include "ui/gfx/transform.h" 16 #include "ui/gfx/transform.h"
17 17
18 namespace base { 18 namespace base {
19 class Value; 19 class Value;
20 } 20 }
21 21
22 namespace gfx { 22 namespace gfx {
23 class QuadF; 23 class QuadF;
24 class Rect; 24 class Rect;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Returns a base::Value representation of the floating point value. 132 // Returns a base::Value representation of the floating point value.
133 // If the value is inf, returns max double/float representation. 133 // If the value is inf, returns max double/float representation.
134 static scoped_ptr<base::Value> asValueSafely(double value); 134 static scoped_ptr<base::Value> asValueSafely(double value);
135 static scoped_ptr<base::Value> asValueSafely(float value); 135 static scoped_ptr<base::Value> asValueSafely(float value);
136 136
137 }; 137 };
138 138
139 } // namespace cc 139 } // namespace cc
140 140
141 #endif // CC_MATH_UTIL_H_ 141 #endif // CC_BASE_MATH_UTIL_H_
OLDNEW
« no previous file with comments | « cc/base/hash_pair_unittest.cc ('k') | cc/base/math_util.cc » ('j') | cc/cc.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698