diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-12 18:31:08 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-12 18:31:08 +0000 |
commit | 131a0c245d22336b9c6c6abf78902f5833e5baeb (patch) | |
tree | 546e5a89d4c6988fb4491b63efd5b611c193ceb3 /cc/math_util.h | |
parent | 3849fb743df6e05f6fd08da8734d1cf2e2285bd4 (diff) | |
download | chromium_src-131a0c245d22336b9c6c6abf78902f5833e5baeb.zip chromium_src-131a0c245d22336b9c6c6abf78902f5833e5baeb.tar.gz chromium_src-131a0c245d22336b9c6c6abf78902f5833e5baeb.tar.bz2 |
[cc] Trace detailed tile info when --trace-all-rendered-frames
With this command line flag, this store a detailed dump of all tile data into the trace buffer, including tile quads in screenspace. This provides enough foundation for cc-frame-viewer to visualize what impl-side painting is doing.
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/12096112
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/math_util.h')
-rw-r--r-- | cc/math_util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cc/math_util.h b/cc/math_util.h index 0d9984e..de6288a 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 |