summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 15:05:58 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 15:05:58 +0000
commit61fdcbf4572ca0c6a80109f4c9437a58caded5ac (patch)
treef982899ae4960d454ae253a0b5dcdb25fab02cd8 /cc
parent3d71cc70ef7cdd457af90e994d0883949a081218 (diff)
downloadchromium_src-61fdcbf4572ca0c6a80109f4c9437a58caded5ac.zip
chromium_src-61fdcbf4572ca0c6a80109f4c9437a58caded5ac.tar.gz
chromium_src-61fdcbf4572ca0c6a80109f4c9437a58caded5ac.tar.bz2
Add LatencyInfo struct.
Used to keep track of latency between when an event happens and when a frame occurs on screen. Includes several numbers used to identify what events each component saw, and the final timestamp of when they got on screen. BUG= Review URL: https://chromiumcodereview.appspot.com/12519009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.gyp1
-rw-r--r--cc/latency_info.h31
2 files changed, 32 insertions, 0 deletions
diff --git a/cc/cc.gyp b/cc/cc.gyp
index 6f18ea4..bce8bc9 100644
--- a/cc/cc.gyp
+++ b/cc/cc.gyp
@@ -94,6 +94,7 @@
'io_surface_layer_impl.h',
'keyframed_animation_curve.cc',
'keyframed_animation_curve.h',
+ 'latency_info.h',
'layer.cc',
'layer.h',
'layer_animation_controller.cc',
diff --git a/cc/latency_info.h b/cc/latency_info.h
new file mode 100644
index 0000000..0e8e7de
--- /dev/null
+++ b/cc/latency_info.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_LATENCY_INFO_H_
+#define CC_LATENCY_INFO_H_
+
+#include "base/time.h"
+
+namespace cc {
+
+struct LatencyInfo {
+ int64 renderer_main_frame_number;
+ int64 renderer_impl_frame_number;
+ int64 browser_main_frame_number;
+ int64 browser_impl_frame_number;
+
+ base::TimeTicks swap_timestamp;
+
+ LatencyInfo() :
+ renderer_main_frame_number(0),
+ renderer_impl_frame_number(0),
+ browser_main_frame_number(0),
+ browser_impl_frame_number(0) {
+ }
+};
+
+} // namespace cc
+
+#endif // CC_LATENCY_INFO_H_
+