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

Unified Diff: cc/base/math_util.cc

Issue 14772032: Trace picture piles on layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: cc/base/math_util.cc
diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
index 7873d931913b4ce0835f6e5a44cd50813b4c55b4..bc1c78c3c668343e4b90756ae7b1fb357ee63809 100644
--- a/cc/base/math_util.cc
+++ b/cc/base/math_util.cc
@@ -526,6 +526,15 @@ scoped_ptr<base::Value> MathUtil::AsValue(gfx::Size s) {
return res.PassAs<base::Value>();
}
+scoped_ptr<base::Value> MathUtil::AsValue(gfx::Rect r) {
+ scoped_ptr<base::ListValue> res(new base::ListValue());
+ res->AppendDouble(r.x());
enne (OOO) 2013/05/14 15:55:18 AppendInteger?
+ res->AppendDouble(r.y());
+ res->AppendDouble(r.width());
+ res->AppendDouble(r.height());
+ return res.PassAs<base::Value>();
+}
+
scoped_ptr<base::Value> MathUtil::AsValue(gfx::PointF pt) {
scoped_ptr<base::ListValue> res(new base::ListValue());
res->AppendDouble(pt.x());
« no previous file with comments | « cc/base/math_util.h ('k') | cc/debug/traced_picture.cc » ('j') | cc/debug/traced_picture.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698