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

Unified Diff: cc/math_util.h

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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/math_util.h
diff --git a/cc/math_util.h b/cc/math_util.h
index 0d9984ef3f1071e0663ae444459c10eb8bfcee0f..de6288a7e1f7dcb1e3318e89e25cb11b40a83be6 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -6,11 +6,17 @@
#define CC_MATH_UTIL_H_
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
#include "cc/cc_export.h"
#include "ui/gfx/point_f.h"
#include "ui/gfx/point3_f.h"
+#include "ui/gfx/size.h"
#include "ui/gfx/transform.h"
+namespace base {
+class Value;
+}
+
namespace gfx {
class QuadF;
class Rect;
@@ -112,6 +118,11 @@ public:
// Projects the |source| vector onto |destination|. Neither vector is assumed to be normalized.
static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF destination);
+
+ // Conversion to value.
+ static scoped_ptr<base::Value> asValue(gfx::Size s);
+ static scoped_ptr<base::Value> asValue(gfx::PointF q);
+ static scoped_ptr<base::Value> asValue(gfx::QuadF q);
};
} // namespace cc
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/math_util.cc » ('j') | cc/picture_layer_tiling.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698