summaryrefslogtreecommitdiffstats
path: root/cc/debug/rendering_stats_instrumentation.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_instrumentation.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_instrumentation.cc')
-rw-r--r--cc/debug/rendering_stats_instrumentation.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/cc/debug/rendering_stats_instrumentation.cc b/cc/debug/rendering_stats_instrumentation.cc
index 01499d2..fb7ec52 100644
--- a/cc/debug/rendering_stats_instrumentation.cc
+++ b/cc/debug/rendering_stats_instrumentation.cc
@@ -71,16 +71,12 @@ base::TimeDelta RenderingStatsInstrumentation::EndRecording(
return base::TimeDelta();
}
-void RenderingStatsInstrumentation::IncrementFrameCount(int64 count,
- bool main_thread) {
+void RenderingStatsInstrumentation::IncrementFrameCount(int64 count) {
if (!record_rendering_stats_)
return;
base::AutoLock scoped_lock(lock_);
- if (main_thread)
- main_thread_rendering_stats_.frame_count += count;
- else
- impl_thread_rendering_stats_.frame_count += count;
+ impl_thread_rendering_stats_.frame_count += count;
}
void RenderingStatsInstrumentation::AddPaint(base::TimeDelta duration,