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

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: add cc:: 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55%
rename from cc/trees/proxy_timing_history.h
rename to cc/scheduler/compositor_timing_history.h
index aa213b6bdb7dbaca33a8a81a84e56cca1a2bb919..41a8484596de5ae96150b268b2b46a9304980ea3 100644
--- a/cc/trees/proxy_timing_history.h
+++ b/cc/scheduler/compositor_timing_history.h
@@ -2,25 +2,34 @@
// 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 base {
+namespace trace_event {
+class TracedValue;
+} // namespace trace_event
+} // namespace base
namespace cc {
-class ProxyTimingHistory {
+class RenderingStatsInstrumentation;
+
+class CC_EXPORT CompositorTimingHistory {
public:
- explicit ProxyTimingHistory(
+ explicit CompositorTimingHistory(
RenderingStatsInstrumentation* rendering_stats_instrumentation);
- ~ProxyTimingHistory();
+ virtual ~CompositorTimingHistory();
- base::TimeDelta DrawDurationEstimate() const;
- base::TimeDelta BeginMainFrameToCommitDurationEstimate() const;
- base::TimeDelta CommitToActivateDurationEstimate() const;
+ void AsValueInto(base::trace_event::TracedValue* state) const;
- void DidBeginMainFrame();
+ virtual base::TimeDelta DrawDurationEstimate() const;
+ virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() const;
+ virtual base::TimeDelta CommitToActivateDurationEstimate() const;
+
+ void WillBeginMainFrame();
void DidCommit();
void DidActivateSyncTree();
void DidStartDrawing();
@@ -39,8 +48,11 @@ class ProxyTimingHistory {
base::TimeTicks start_draw_time_;
RenderingStatsInstrumentation* rendering_stats_instrumentation_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory);
};
} // 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698