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