| Index: cc/debug/rendering_stats_instrumentation.cc
|
| diff --git a/cc/debug/rendering_stats_instrumentation.cc b/cc/debug/rendering_stats_instrumentation.cc
|
| index 3987b7e0751dc79df214735fe92984b4c14c33c0..63840a35f74f40d9fef8d4169b15b2bda85e6936 100644
|
| --- a/cc/debug/rendering_stats_instrumentation.cc
|
| +++ b/cc/debug/rendering_stats_instrumentation.cc
|
| @@ -99,4 +99,13 @@ void RenderingStatsInstrumentation::AddRaster(base::TimeDelta duration,
|
| impl_stats_.rasterized_pixel_count += pixels;
|
| }
|
|
|
| +void RenderingStatsInstrumentation::AddAnalysis(base::TimeDelta duration,
|
| + int64 pixels) {
|
| + if (!record_rendering_stats_)
|
| + return;
|
| +
|
| + base::AutoLock scoped_lock(lock_);
|
| + impl_stats_.analysis_time += duration;
|
| +}
|
| +
|
| } // namespace cc
|
|
|