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

Unified Diff: cc/debug/rendering_stats.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/rasterize_and_record_benchmark_impl.cc ('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 7b1898a9daac5af5bbe41ec1db72f137a0bffbd6..193454ccebbf256dc5d0939c40d35fef1ab1ba55 100644
--- a/cc/debug/rendering_stats.h
+++ b/cc/debug/rendering_stats.h
@@ -31,51 +31,27 @@ struct CC_EXPORT RenderingStats {
base::TimeDelta GetLastTimeDelta() const;
private:
- std::list<base::TimeDelta> values;
+ std::vector<base::TimeDelta> values;
};
- struct CC_EXPORT MainThreadRenderingStats {
- // Note: when adding new members, please remember to update Add in
- // rendering_stats.cc.
+ RenderingStats();
+ ~RenderingStats();
- base::TimeDelta paint_time;
- int64 painted_pixel_count;
- base::TimeDelta record_time;
- int64 recorded_pixel_count;
+ // Note: when adding new members, please remember to update Add in
+ // rendering_stats.cc.
- MainThreadRenderingStats();
- ~MainThreadRenderingStats();
- scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData()
- const;
- void Add(const MainThreadRenderingStats& other);
- };
-
- struct CC_EXPORT ImplThreadRenderingStats {
- // Note: when adding new members, please remember to update Add in
- // rendering_stats.cc.
-
- int64 frame_count;
- int64 visible_content_area;
- int64 approximated_visible_content_area;
-
- TimeDeltaList draw_duration;
- TimeDeltaList draw_duration_estimate;
- TimeDeltaList begin_main_frame_to_commit_duration;
- TimeDeltaList begin_main_frame_to_commit_duration_estimate;
- TimeDeltaList commit_to_activate_duration;
- TimeDeltaList commit_to_activate_duration_estimate;
-
- ImplThreadRenderingStats();
- ~ImplThreadRenderingStats();
- scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData()
- const;
- void Add(const ImplThreadRenderingStats& other);
- };
+ int64 frame_count;
+ int64 visible_content_area;
+ int64 approximated_visible_content_area;
- MainThreadRenderingStats main_stats;
- ImplThreadRenderingStats impl_stats;
+ TimeDeltaList draw_duration;
+ TimeDeltaList draw_duration_estimate;
+ TimeDeltaList begin_main_frame_to_commit_duration;
+ TimeDeltaList begin_main_frame_to_commit_duration_estimate;
+ TimeDeltaList commit_to_activate_duration;
+ TimeDeltaList commit_to_activate_duration_estimate;
- // Add fields of |other| to the fields in this structure.
+ scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const;
void Add(const RenderingStats& other);
};
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698