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

Unified Diff: cc/debug/rendering_stats.h

Issue 380763002: Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed memory leak found by Linux ASAN Created 6 years, 5 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
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.h ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rendering_stats.h
diff --git a/cc/debug/rendering_stats.h b/cc/debug/rendering_stats.h
index a6edff1ea4f597c868dc68605739ac0b7c8a6534..73ca9c4dd7d4e93cdc4ee2d17114cae2b2795283 100644
--- a/cc/debug/rendering_stats.h
+++ b/cc/debug/rendering_stats.h
@@ -8,6 +8,7 @@
#include <list>
#include "base/basictypes.h"
+#include "base/debug/trace_event_argument.h"
#include "base/time/time.h"
#include "base/values.h"
#include "cc/base/cc_export.h"
@@ -23,7 +24,8 @@ struct CC_EXPORT RenderingStats {
~TimeDeltaList();
void Append(base::TimeDelta value);
- scoped_ptr<base::ListValue> AsListValueInMilliseconds() const;
+ void AddToTracedValue(base::debug::TracedValue* list_value) const;
+
void Add(const TimeDeltaList& other);
private:
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.h ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698