diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 23:51:21 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 23:51:21 +0000 |
commit | 3480672c5ed57c3e493ead97c7beb7a369210742 (patch) | |
tree | 06a5b6dd4ca08fa743c93c6ec1de740e0b6f41d3 /cc/base/math_util.h | |
parent | b00fba04dda9a9a14efc0b86bfbc2337ba9bbf98 (diff) | |
download | chromium_src-3480672c5ed57c3e493ead97c7beb7a369210742.zip chromium_src-3480672c5ed57c3e493ead97c7beb7a369210742.tar.gz chromium_src-3480672c5ed57c3e493ead97c7beb7a369210742.tar.bz2 |
cc: Add frame data to LTHI tracing
This adds AddValue support to FrameData, RenderPass, *DrawQuad, FilterOperations, etc.
It also adds an optional 'frame' field to the LTHI state which is the frame
being produced at this point, with everything mentioned above.
BUG=None
R=danakj@chromium.org, nduca@chromium.org, vmpstr@chromium.org
Review URL: https://codereview.chromium.org/20667002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/base/math_util.h')
-rw-r--r-- | cc/base/math_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/base/math_util.h b/cc/base/math_util.h index 23eb20f..37f0c07 100644 --- a/cc/base/math_util.h +++ b/cc/base/math_util.h @@ -156,11 +156,13 @@ class CC_EXPORT MathUtil { // Conversion to value. static scoped_ptr<base::Value> AsValue(gfx::Size s); + static scoped_ptr<base::Value> AsValue(gfx::SizeF s); static scoped_ptr<base::Value> AsValue(gfx::Rect r); 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); static scoped_ptr<base::Value> AsValue(const gfx::RectF& rect); + static scoped_ptr<base::Value> AsValue(const gfx::Transform& transform); // Returns a base::Value representation of the floating point value. // If the value is inf, returns max double/float representation. |