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

Unified Diff: cc/test/scheduler_test_common.h

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/scheduler/scheduler_unittest.cc ('k') | cc/test/scheduler_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/scheduler_test_common.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index a887e8ad0ae10a02fbfba26320f9223c0fa4d3f9..ef45ae9939ff5401f87e23deed135ce248f02e97 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -166,6 +166,8 @@ class FakeCompositorTimingHistory : public CompositorTimingHistory {
static scoped_ptr<FakeCompositorTimingHistory> Create();
~FakeCompositorTimingHistory() override;
+ void SetAllEstimatesTo(base::TimeDelta duration);
+
void SetBeginMainFrameToCommitDurationEstimate(base::TimeDelta duration);
void SetCommitToReadyToActivateDurationEstimate(base::TimeDelta duration);
void SetPrepareTilesDurationEstimate(base::TimeDelta duration);
@@ -211,11 +213,19 @@ class TestScheduler : public Scheduler {
return begin_retro_frame_args_.empty();
}
+ bool SwapThrottled() const { return state_machine_.SwapThrottled(); }
+
bool CanStart() const { return state_machine_.CanStartForTesting(); }
+ bool NeedsCommit() const { return state_machine_.needs_commit(); }
+
BeginFrameSource& frame_source() { return *frame_source_; }
bool FrameProductionThrottled() { return throttle_frame_production_; }
+ bool MainThreadIsInHighLatencyMode() const {
+ return state_machine_.MainThreadIsInHighLatencyMode();
+ }
+
~TestScheduler() override;
base::TimeDelta BeginImplFrameInterval() {
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/scheduler_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698