Index: cc/base/math_util.h |
diff --git a/cc/base/math_util.h b/cc/base/math_util.h |
index 3af2102152098df6b4890f1446061cc26ee4a9b8..0f2e35002c917868e67a1a391b0b18c566850f5d 100644 |
--- a/cc/base/math_util.h |
+++ b/cc/base/math_util.h |
@@ -17,7 +17,12 @@ |
#include "ui/gfx/size.h" |
#include "ui/gfx/transform.h" |
-namespace base { class Value; } |
+namespace base { |
+class Value; |
+namespace debug { |
+class TracedValue; |
+} |
+} |
namespace gfx { |
class QuadF; |
@@ -185,10 +190,33 @@ class CC_EXPORT MathUtil { |
static scoped_ptr<base::Value> AsValue(const gfx::Transform& transform); |
static scoped_ptr<base::Value> AsValue(const gfx::BoxF& box); |
nduca
2014/07/30 07:52:32
do we need these now that we have AddToTracedValue
yurys
2014/07/30 09:44:58
Hopefully not. I will remove all unused utility fu
yurys
2014/07/30 14:41:16
Some of them need to stay as they are used in Laye
|
+ static void AddToTracedValue(const gfx::Size& s, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::SizeF& s, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::Rect& r, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::PointF& q, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::Point3F&, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::Vector2d& v, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::QuadF& q, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::RectF& rect, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::Transform& transform, |
+ base::debug::TracedValue* res); |
+ static void AddToTracedValue(const gfx::BoxF& box, |
+ base::debug::TracedValue* res); |
+ |
// Returns a base::Value representation of the floating point value. |
// If the value is inf, returns max double/float representation. |
static scoped_ptr<base::Value> AsValueSafely(double value); |
static scoped_ptr<base::Value> AsValueSafely(float value); |
+ static double AsDoubleSafely(double value); |
+ static float AsFloatSafely(float value); |
}; |
} // namespace cc |