| 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> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 static void AddToTracedValue(const gfx::SizeF& s, | 197 static void AddToTracedValue(const gfx::SizeF& s, |
| 198 base::debug::TracedValue* res); | 198 base::debug::TracedValue* res); |
| 199 static void AddToTracedValue(const gfx::Rect& r, | 199 static void AddToTracedValue(const gfx::Rect& r, |
| 200 base::debug::TracedValue* res); | 200 base::debug::TracedValue* res); |
| 201 static void AddToTracedValue(const gfx::PointF& q, | 201 static void AddToTracedValue(const gfx::PointF& q, |
| 202 base::debug::TracedValue* res); | 202 base::debug::TracedValue* res); |
| 203 static void AddToTracedValue(const gfx::Point3F&, | 203 static void AddToTracedValue(const gfx::Point3F&, |
| 204 base::debug::TracedValue* res); | 204 base::debug::TracedValue* res); |
| 205 static void AddToTracedValue(const gfx::Vector2d& v, | 205 static void AddToTracedValue(const gfx::Vector2d& v, |
| 206 base::debug::TracedValue* res); | 206 base::debug::TracedValue* res); |
| 207 static void AddToTracedValue(const gfx::Vector2dF& v, |
| 208 base::debug::TracedValue* res); |
| 207 static void AddToTracedValue(const gfx::QuadF& q, | 209 static void AddToTracedValue(const gfx::QuadF& q, |
| 208 base::debug::TracedValue* res); | 210 base::debug::TracedValue* res); |
| 209 static void AddToTracedValue(const gfx::RectF& rect, | 211 static void AddToTracedValue(const gfx::RectF& rect, |
| 210 base::debug::TracedValue* res); | 212 base::debug::TracedValue* res); |
| 211 static void AddToTracedValue(const gfx::Transform& transform, | 213 static void AddToTracedValue(const gfx::Transform& transform, |
| 212 base::debug::TracedValue* res); | 214 base::debug::TracedValue* res); |
| 213 static void AddToTracedValue(const gfx::BoxF& box, | 215 static void AddToTracedValue(const gfx::BoxF& box, |
| 214 base::debug::TracedValue* res); | 216 base::debug::TracedValue* res); |
| 215 | 217 |
| 216 // Returns a base::Value representation of the floating point value. | 218 // Returns a base::Value representation of the floating point value. |
| 217 // If the value is inf, returns max double/float representation. | 219 // If the value is inf, returns max double/float representation. |
| 218 static double AsDoubleSafely(double value); | 220 static double AsDoubleSafely(double value); |
| 219 static float AsFloatSafely(float value); | 221 static float AsFloatSafely(float value); |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 } // namespace cc | 224 } // namespace cc |
| 223 | 225 |
| 224 #endif // CC_BASE_MATH_UTIL_H_ | 226 #endif // CC_BASE_MATH_UTIL_H_ |
| OLD | NEW |