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 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
14 #include "ui/gfx/box_f.h" | 14 #include "ui/gfx/geometry/box_f.h" |
15 #include "ui/gfx/point3_f.h" | 15 #include "ui/gfx/geometry/point3_f.h" |
16 #include "ui/gfx/point_f.h" | 16 #include "ui/gfx/geometry/point_f.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
18 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
19 | 19 |
20 namespace base { class Value; } | 20 namespace base { class Value; } |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class QuadF; | 23 class QuadF; |
24 class Rect; | 24 class Rect; |
25 class RectF; | 25 class RectF; |
26 class Transform; | 26 class Transform; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 // Returns a base::Value representation of the floating point value. | 188 // Returns a base::Value representation of the floating point value. |
189 // If the value is inf, returns max double/float representation. | 189 // If the value is inf, returns max double/float representation. |
190 static scoped_ptr<base::Value> AsValueSafely(double value); | 190 static scoped_ptr<base::Value> AsValueSafely(double value); |
191 static scoped_ptr<base::Value> AsValueSafely(float value); | 191 static scoped_ptr<base::Value> AsValueSafely(float value); |
192 }; | 192 }; |
193 | 193 |
194 } // namespace cc | 194 } // namespace cc |
195 | 195 |
196 #endif // CC_BASE_MATH_UTIL_H_ | 196 #endif // CC_BASE_MATH_UTIL_H_ |
OLD | NEW |