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

Unified Diff: cc/trees/proxy_timing_history.h

Issue 154163005: cc: Abstract out proxy timing history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile oops Created 6 years, 10 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/cc.gyp ('k') | cc/trees/proxy_timing_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_timing_history.h
diff --git a/cc/trees/proxy_timing_history.h b/cc/trees/proxy_timing_history.h
new file mode 100644
index 0000000000000000000000000000000000000000..92ef80f8f070b758a61bf184224708976e52f594
--- /dev/null
+++ b/cc/trees/proxy_timing_history.h
@@ -0,0 +1,40 @@
+// 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_TREES_PROXY_TIMING_HISTORY_H_
+#define CC_TREES_PROXY_TIMING_HISTORY_H_
+
+#include "cc/base/rolling_time_delta_history.h"
+
+namespace cc {
+
+class ProxyTimingHistory {
+ public:
+ ProxyTimingHistory();
+ ~ProxyTimingHistory();
+
+ base::TimeDelta DrawDurationEstimate() const;
+ base::TimeDelta BeginMainFrameToCommitDurationEstimate() const;
+ base::TimeDelta CommitToActivateDurationEstimate() const;
+
+ void DidBeginMainFrame();
+ void DidCommit();
+ void DidActivatePendingTree();
+ void DidStartDrawing();
+ // Returns draw duration.
+ base::TimeDelta DidFinishDrawing();
+
+ protected:
+ RollingTimeDeltaHistory draw_duration_history_;
+ RollingTimeDeltaHistory begin_main_frame_to_commit_duration_history_;
+ RollingTimeDeltaHistory commit_to_activate_duration_history_;
+
+ base::TimeTicks begin_main_frame_sent_time_;
+ base::TimeTicks commit_complete_time_;
+ base::TimeTicks start_draw_time_;
+};
+
+} // namespace cc
+
+#endif // CC_TREES_PROXY_TIMING_HISTORY_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/trees/proxy_timing_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698