summaryrefslogtreecommitdiff
path: root/chromium/cc/debug/traced_picture.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/debug/traced_picture.h')
-rw-r--r--chromium/cc/debug/traced_picture.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/cc/debug/traced_picture.h b/chromium/cc/debug/traced_picture.h
new file mode 100644
index 00000000000..9137d8f830e
--- /dev/null
+++ b/chromium/cc/debug/traced_picture.h
@@ -0,0 +1,35 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_DEBUG_TRACED_PICTURE_H_
+#define CC_DEBUG_TRACED_PICTURE_H_
+
+#include <string>
+
+#include "base/debug/trace_event.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/resources/picture.h"
+
+namespace cc {
+
+class TracedPicture : public base::debug::ConvertableToTraceFormat {
+ public:
+ explicit TracedPicture(scoped_refptr<Picture>);
+
+ virtual ~TracedPicture();
+
+ static scoped_ptr<base::debug::ConvertableToTraceFormat>
+ AsTraceablePicture(Picture* picture);
+
+ virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE;
+
+ private:
+ scoped_refptr<Picture> picture_;
+
+ DISALLOW_COPY_AND_ASSIGN(TracedPicture);
+};
+
+} // namespace cc
+
+#endif // CC_DEBUG_TRACED_PICTURE_H_