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

Unified Diff: cc/test/scheduler_test_common.h

Issue 1192663005: cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: rebase 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/test/scheduler_test_common.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index c66b16261535a3183fcbbe5571cf52829856d7ac..b1963673f2c9b01003da34c9d601d5663264a44d 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -166,13 +166,17 @@ class FakeCompositorTimingHistory : public CompositorTimingHistory {
static scoped_ptr<FakeCompositorTimingHistory> Create();
~FakeCompositorTimingHistory() override;
- void SetDrawDurationEstimate(base::TimeDelta duration);
void SetBeginMainFrameToCommitDurationEstimate(base::TimeDelta duration);
- void SetCommitToActivateDurationEstimate(base::TimeDelta duration);
+ void SetPrepareTilesDurationEstimate(base::TimeDelta duration);
+ void SetCommitToReadyToActivateDurationEstimate(base::TimeDelta duration);
+ void SetActivateDurationEstimate(base::TimeDelta duration);
+ void SetDrawDurationEstimate(base::TimeDelta duration);
- base::TimeDelta DrawDurationEstimate() const override;
base::TimeDelta BeginMainFrameToCommitDurationEstimate() const override;
- base::TimeDelta CommitToActivateDurationEstimate() const override;
+ base::TimeDelta PrepareTilesDurationEstimate() const override;
+ base::TimeDelta CommitToReadyToActivateDurationEstimate() const override;
+ base::TimeDelta ActivateDurationEstimate() const override;
+ base::TimeDelta DrawDurationEstimate() const override;
protected:
FakeCompositorTimingHistory(scoped_ptr<RenderingStatsInstrumentation>
@@ -181,9 +185,11 @@ class FakeCompositorTimingHistory : public CompositorTimingHistory {
scoped_ptr<RenderingStatsInstrumentation>
rendering_stats_instrumentation_owned_;
- base::TimeDelta draw_duration_;
base::TimeDelta begin_main_frame_to_commit_duration_;
- base::TimeDelta commit_to_activate_duration_;
+ base::TimeDelta prepare_tiles_duration_;
+ base::TimeDelta prepare_tiles_begin_to_ready_to_activate_duration_;
+ base::TimeDelta activate_duration_;
+ base::TimeDelta draw_duration_;
private:
DISALLOW_COPY_AND_ASSIGN(FakeCompositorTimingHistory);

Powered by Google App Engine
This is Rietveld 408576698