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

Unified Diff: cc/scheduler/compositor_timing_history.h

Issue 1184863004: cc: Move timing history to the Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, add include Created 5 years, 6 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
Index: cc/scheduler/compositor_timing_history.h
diff --git a/cc/trees/proxy_timing_history.h b/cc/scheduler/compositor_timing_history.h
similarity index 78%
rename from cc/trees/proxy_timing_history.h
rename to cc/scheduler/compositor_timing_history.h
index aa213b6bdb7dbaca33a8a81a84e56cca1a2bb919..f38c3dbcf9e6955fe5f9cf08529063a2d3013911 100644
--- a/cc/trees/proxy_timing_history.h
+++ b/cc/scheduler/compositor_timing_history.h
@@ -2,25 +2,26 @@
// 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_
+#ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
+#define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
#include "cc/base/rolling_time_delta_history.h"
-#include "cc/debug/rendering_stats_instrumentation.h"
namespace cc {
-class ProxyTimingHistory {
+class RenderingStatsInstrumentation;
+
+class CompositorTimingHistory {
public:
- explicit ProxyTimingHistory(
+ explicit CompositorTimingHistory(
RenderingStatsInstrumentation* rendering_stats_instrumentation);
- ~ProxyTimingHistory();
+ ~CompositorTimingHistory();
base::TimeDelta DrawDurationEstimate() const;
base::TimeDelta BeginMainFrameToCommitDurationEstimate() const;
base::TimeDelta CommitToActivateDurationEstimate() const;
- void DidBeginMainFrame();
+ void WillBeginMainFrame();
void DidCommit();
void DidActivateSyncTree();
void DidStartDrawing();
@@ -43,4 +44,4 @@ class ProxyTimingHistory {
} // namespace cc
-#endif // CC_TREES_PROXY_TIMING_HISTORY_H_
+#endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/scheduler/compositor_timing_history.cc » ('j') | cc/scheduler/scheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698