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_BASE_MATH_UTIL_H_ | 5 #ifndef CC_BASE_MATH_UTIL_H_ |
6 #define CC_BASE_MATH_UTIL_H_ | 6 #define CC_BASE_MATH_UTIL_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
15 #include "ui/gfx/box_f.h" | 15 #include "ui/gfx/geometry/box_f.h" |
| 16 #include "ui/gfx/geometry/point3_f.h" |
| 17 #include "ui/gfx/geometry/point_f.h" |
16 #include "ui/gfx/geometry/scroll_offset.h" | 18 #include "ui/gfx/geometry/scroll_offset.h" |
17 #include "ui/gfx/point3_f.h" | 19 #include "ui/gfx/geometry/size.h" |
18 #include "ui/gfx/point_f.h" | |
19 #include "ui/gfx/size.h" | |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class Value; | 23 class Value; |
24 namespace debug { | 24 namespace debug { |
25 class TracedValue; | 25 class TracedValue; |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 namespace gfx { | 29 namespace gfx { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 // Returns a base::Value representation of the floating point value. | 227 // Returns a base::Value representation of the floating point value. |
228 // If the value is inf, returns max double/float representation. | 228 // If the value is inf, returns max double/float representation. |
229 static double AsDoubleSafely(double value); | 229 static double AsDoubleSafely(double value); |
230 static float AsFloatSafely(float value); | 230 static float AsFloatSafely(float value); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace cc | 233 } // namespace cc |
234 | 234 |
235 #endif // CC_BASE_MATH_UTIL_H_ | 235 #endif // CC_BASE_MATH_UTIL_H_ |
OLD | NEW |