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

Unified Diff: cc/test/scheduler_test_common.cc

Issue 1133673004: cc: Heuristic for Renderer latency recovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaswe 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') | no next file » | 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 48e7eb588b5bee9276307a6f6b1c529a39429cf3..7419b21e446cd1040cbf329909be1c73e9b90fed 100644
--- a/cc/test/scheduler_test_common.cc
+++ b/cc/test/scheduler_test_common.cc
@@ -83,6 +83,14 @@ FakeCompositorTimingHistory::FakeCompositorTimingHistory(
FakeCompositorTimingHistory::~FakeCompositorTimingHistory() {
}
+void FakeCompositorTimingHistory::SetAllEstimatesTo(base::TimeDelta duration) {
+ begin_main_frame_to_commit_duration_ = duration;
+ commit_to_ready_to_activate_duration_ = duration;
+ prepare_tiles_duration_ = duration;
+ activate_duration_ = duration;
+ draw_duration_ = duration;
+}
+
void FakeCompositorTimingHistory::SetBeginMainFrameToCommitDurationEstimate(
base::TimeDelta duration) {
begin_main_frame_to_commit_duration_ = duration;
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698