| Index: cc/trees/proxy_timing_history.h
|
| diff --git a/cc/trees/proxy_timing_history.h b/cc/trees/proxy_timing_history.h
|
| index 9230e8af04e972f75c802878dce3cedb982d8923..aa213b6bdb7dbaca33a8a81a84e56cca1a2bb919 100644
|
| --- a/cc/trees/proxy_timing_history.h
|
| +++ b/cc/trees/proxy_timing_history.h
|
| @@ -6,12 +6,14 @@
|
| #define CC_TREES_PROXY_TIMING_HISTORY_H_
|
|
|
| #include "cc/base/rolling_time_delta_history.h"
|
| +#include "cc/debug/rendering_stats_instrumentation.h"
|
|
|
| namespace cc {
|
|
|
| class ProxyTimingHistory {
|
| public:
|
| - ProxyTimingHistory();
|
| + explicit ProxyTimingHistory(
|
| + RenderingStatsInstrumentation* rendering_stats_instrumentation);
|
| ~ProxyTimingHistory();
|
|
|
| base::TimeDelta DrawDurationEstimate() const;
|
| @@ -22,10 +24,12 @@ class ProxyTimingHistory {
|
| void DidCommit();
|
| void DidActivateSyncTree();
|
| void DidStartDrawing();
|
| - // Returns draw duration.
|
| - base::TimeDelta DidFinishDrawing();
|
| + void DidFinishDrawing();
|
|
|
| protected:
|
| + void AddDrawDurationUMA(base::TimeDelta draw_duration,
|
| + base::TimeDelta draw_duration_estimate);
|
| +
|
| RollingTimeDeltaHistory draw_duration_history_;
|
| RollingTimeDeltaHistory begin_main_frame_to_commit_duration_history_;
|
| RollingTimeDeltaHistory commit_to_activate_duration_history_;
|
| @@ -33,6 +37,8 @@ class ProxyTimingHistory {
|
| base::TimeTicks begin_main_frame_sent_time_;
|
| base::TimeTicks commit_complete_time_;
|
| base::TimeTicks start_draw_time_;
|
| +
|
| + RenderingStatsInstrumentation* rendering_stats_instrumentation_;
|
| };
|
|
|
| } // namespace cc
|
|
|