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

Unified Diff: cc/test/scheduler_test_common.cc

Issue 1213653005: Revert of cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: Created 5 years, 5 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/test/scheduler_test_common.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/scheduler_test_common.cc
diff --git a/cc/test/scheduler_test_common.cc b/cc/test/scheduler_test_common.cc
index 91d0952922aab2ded73b50dcc3f958d3271ac66f..b0461ec3f86c6f9a8e629d399b3842e7232753d9 100644
--- a/cc/test/scheduler_test_common.cc
+++ b/cc/test/scheduler_test_common.cc
@@ -83,29 +83,23 @@
FakeCompositorTimingHistory::~FakeCompositorTimingHistory() {
}
+void FakeCompositorTimingHistory::SetDrawDurationEstimate(
+ base::TimeDelta duration) {
+ draw_duration_ = duration;
+}
+
void FakeCompositorTimingHistory::SetBeginMainFrameToCommitDurationEstimate(
base::TimeDelta duration) {
begin_main_frame_to_commit_duration_ = duration;
}
-void FakeCompositorTimingHistory::SetCommitToReadyToActivateDurationEstimate(
+void FakeCompositorTimingHistory::SetCommitToActivateDurationEstimate(
base::TimeDelta duration) {
- commit_to_ready_to_activate_duration_ = duration;
+ commit_to_activate_duration_ = duration;
}
-void FakeCompositorTimingHistory::SetPrepareTilesDurationEstimate(
- base::TimeDelta duration) {
- prepare_tiles_duration_ = duration;
-}
-
-void FakeCompositorTimingHistory::SetActivateDurationEstimate(
- base::TimeDelta duration) {
- activate_duration_ = duration;
-}
-
-void FakeCompositorTimingHistory::SetDrawDurationEstimate(
- base::TimeDelta duration) {
- draw_duration_ = duration;
+base::TimeDelta FakeCompositorTimingHistory::DrawDurationEstimate() const {
+ return draw_duration_;
}
base::TimeDelta
@@ -113,22 +107,9 @@
return begin_main_frame_to_commit_duration_;
}
-base::TimeDelta
-FakeCompositorTimingHistory::CommitToReadyToActivateDurationEstimate() const {
- return commit_to_ready_to_activate_duration_;
-}
-
-base::TimeDelta FakeCompositorTimingHistory::PrepareTilesDurationEstimate()
+base::TimeDelta FakeCompositorTimingHistory::CommitToActivateDurationEstimate()
const {
- return prepare_tiles_duration_;
-}
-
-base::TimeDelta FakeCompositorTimingHistory::ActivateDurationEstimate() const {
- return activate_duration_;
-}
-
-base::TimeDelta FakeCompositorTimingHistory::DrawDurationEstimate() const {
- return draw_duration_;
+ return commit_to_activate_duration_;
}
scoped_ptr<TestScheduler> TestScheduler::Create(
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698