summaryrefslogtreecommitdiffstats
path: root/cc/quads/render_pass.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 23:51:21 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 23:51:21 +0000
commit3480672c5ed57c3e493ead97c7beb7a369210742 (patch)
tree06a5b6dd4ca08fa743c93c6ec1de740e0b6f41d3 /cc/quads/render_pass.h
parentb00fba04dda9a9a14efc0b86bfbc2337ba9bbf98 (diff)
downloadchromium_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/quads/render_pass.h')
-rw-r--r--cc/quads/render_pass.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index 3d5a37c..224a050 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -20,6 +20,10 @@
#include "ui/gfx/rect_f.h"
#include "ui/gfx/transform.h"
+namespace base {
+class Value;
+};
+
namespace cc {
class DrawQuad;
@@ -47,6 +51,7 @@ class CC_EXPORT RenderPass {
int index;
Id(int layer_id, int index) : layer_id(layer_id), index(index) {}
+ void* AsTracingId() const;
bool operator==(const Id& other) const {
return layer_id == other.layer_id && index == other.index;
@@ -79,6 +84,8 @@ class CC_EXPORT RenderPass {
bool has_transparent_background,
bool has_occlusion_from_outside_target_surface);
+ scoped_ptr<base::Value> AsValue() const;
+
// Uniquely identifies the render pass in the compositor's current frame.
Id id;