Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: cc/base/math_util.h

Issue 853393002: cc: refactor of MathUtil::AddToTracedValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/math_util.h
diff --git a/cc/base/math_util.h b/cc/base/math_util.h
index 50494e1ba794ec5aa263736adec5d260a398486c..d9cc43b552eb1042381569f0ff377a1d3de865d0 100644
--- a/cc/base/math_util.h
+++ b/cc/base/math_util.h
@@ -199,29 +199,41 @@ class CC_EXPORT MathUtil {
static bool FromValue(const base::Value*, gfx::Rect* out_rect);
static scoped_ptr<base::Value> AsValue(const gfx::PointF& q);
- static void AddToTracedValue(const gfx::Size& s,
+ static void AddToTracedValue(const char* name,
+ const gfx::Size& s,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::SizeF& s,
+ static void AddToTracedValue(const char* name,
+ const gfx::SizeF& s,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::Rect& r,
+ static void AddToTracedValue(const char* name,
+ const gfx::Rect& r,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::PointF& q,
+ static void AddToTracedValue(const char* name,
+ const gfx::PointF& q,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::Point3F&,
+ static void AddToTracedValue(const char* name,
+ const gfx::Point3F&,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::Vector2d& v,
+ static void AddToTracedValue(const char* name,
+ const gfx::Vector2d& v,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::Vector2dF& v,
+ static void AddToTracedValue(const char* name,
+ const gfx::Vector2dF& v,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::ScrollOffset& v,
+ static void AddToTracedValue(const char* name,
+ const gfx::ScrollOffset& v,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::QuadF& q,
+ static void AddToTracedValue(const char* name,
+ const gfx::QuadF& q,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::RectF& rect,
+ static void AddToTracedValue(const char* name,
+ const gfx::RectF& rect,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::Transform& transform,
+ static void AddToTracedValue(const char* name,
+ const gfx::Transform& transform,
base::debug::TracedValue* res);
- static void AddToTracedValue(const gfx::BoxF& box,
+ static void AddToTracedValue(const char* name,
+ const gfx::BoxF& box,
base::debug::TracedValue* res);
// Returns a base::Value representation of the floating point value.
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698