summaryrefslogtreecommitdiffstats
path: root/cc/debug/rendering_stats.cc
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2014-10-06 11:14:24 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-06 18:17:58 +0000
commit477b50009d63bcd5e052a5d194041faba55f6c9a (patch)
tree51215c1cc9f91853c1f6ffe7d596a69508c9a95c /cc/debug/rendering_stats.cc
parentb214888d0e753210b01077afaa3b32ea000a6097 (diff)
downloadchromium_src-477b50009d63bcd5e052a5d194041faba55f6c9a.zip
chromium_src-477b50009d63bcd5e052a5d194041faba55f6c9a.tar.gz
chromium_src-477b50009d63bcd5e052a5d194041faba55f6c9a.tar.bz2
Record rendering stats frame timestamps with surfaces.
The Display may draw frames without the root compositor knowing about them, so record the time in Display::Draw for use as a frame timestamp. Review URL: https://codereview.chromium.org/614263003 Cr-Commit-Position: refs/heads/master@{#298276}
Diffstat (limited to 'cc/debug/rendering_stats.cc')
-rw-r--r--cc/debug/rendering_stats.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/debug/rendering_stats.cc b/cc/debug/rendering_stats.cc
index b5989fc..d0668da 100644
--- a/cc/debug/rendering_stats.cc
+++ b/cc/debug/rendering_stats.cc
@@ -29,7 +29,7 @@ void RenderingStats::TimeDeltaList::Add(const TimeDeltaList& other) {
}
RenderingStats::MainThreadRenderingStats::MainThreadRenderingStats()
- : frame_count(0), painted_pixel_count(0), recorded_pixel_count(0) {
+ : painted_pixel_count(0), recorded_pixel_count(0) {
}
RenderingStats::MainThreadRenderingStats::~MainThreadRenderingStats() {
@@ -39,7 +39,6 @@ scoped_refptr<base::debug::ConvertableToTraceFormat>
RenderingStats::MainThreadRenderingStats::AsTraceableData() const {
scoped_refptr<base::debug::TracedValue> record_data =
new base::debug::TracedValue();
- record_data->SetInteger("frame_count", frame_count);
record_data->SetDouble("paint_time", paint_time.InSecondsF());
record_data->SetInteger("painted_pixel_count", painted_pixel_count);
record_data->SetDouble("record_time", record_time.InSecondsF());
@@ -49,7 +48,6 @@ RenderingStats::MainThreadRenderingStats::AsTraceableData() const {
void RenderingStats::MainThreadRenderingStats::Add(
const MainThreadRenderingStats& other) {
- frame_count += other.frame_count;
paint_time += other.paint_time;
painted_pixel_count += other.painted_pixel_count;
record_time += other.record_time;