Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5037)

Unified Diff: cc/latency_info.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/input_handler.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/latency_info.h
diff --git a/cc/latency_info.h b/cc/latency_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebbb474560469d679dc6db58ee4685237e70148b
--- /dev/null
+++ b/cc/latency_info.h
@@ -0,0 +1,33 @@
+// Copyright 2012 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 inputNumber;
+ int64 rendererMainFrameNumber;
+ int64 rendererImplFrameNumber;
+ int64 browserMainFrameNumber;
+ int64 browserImplFrameNumber;
+
+ base::TimeTicks swapTimestamp;
+
+ LatencyInfo()
+ : inputNumber(0)
+ , rendererMainFrameNumber(0)
+ , rendererImplFrameNumber(0)
+ , browserMainFrameNumber(0)
+ , browserImplFrameNumber(0)
+ {
+ }
+};
+
+} // namespace cc
+
+#endif // CC_LATENCY_INFO_H_
« no previous file with comments | « cc/input_handler.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698