From 477b50009d63bcd5e052a5d194041faba55f6c9a Mon Sep 17 00:00:00 2001 From: jbauman Date: Mon, 6 Oct 2014 11:14:24 -0700 Subject: 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} --- cc/debug/rendering_stats.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cc/debug/rendering_stats.cc') 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 RenderingStats::MainThreadRenderingStats::AsTraceableData() const { scoped_refptr 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; -- cgit v1.1