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

Unified Diff: cc/base/math_util.h

Issue 20994007: Add impl/comp scrolling instrumentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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') | cc/trees/layer_tree_host.cc » ('J')
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 23eb20fa38af00ae19c52bc6351d92b686c1527f..1a0c2d4e7ba445165ff449fcadac47218ec99500 100644
--- a/cc/base/math_util.h
+++ b/cc/base/math_util.h
@@ -24,6 +24,7 @@ class Rect;
class RectF;
class Transform;
class Vector2dF;
+class Vector2d;
}
namespace cc {
@@ -157,6 +158,8 @@ class CC_EXPORT MathUtil {
// Conversion to value.
static scoped_ptr<base::Value> AsValue(gfx::Size s);
static scoped_ptr<base::Value> AsValue(gfx::Rect r);
+ static scoped_ptr<base::Value> AsValue(gfx::Vector2d vec);
+ static scoped_ptr<base::Value> AsValue(gfx::Vector2dF vec);
static bool FromValue(const base::Value*, gfx::Rect* out_rect);
static scoped_ptr<base::Value> AsValue(gfx::PointF q);
static scoped_ptr<base::Value> AsValue(const gfx::QuadF& q);
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698