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

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: Created 5 years, 7 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
« cc/test/begin_frame_args_test.cc ('K') | « cc/test/begin_frame_args_test.cc ('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.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index 633289ba3ff729cf5f909d0201b2dd0410185f46..6080b6633c33d5bbd0f02059a10551dc01377f96 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -186,6 +186,18 @@ class TestScheduler : public Scheduler {
bool FrameProductionThrottled() { return throttle_frame_production_; }
BeginFrameArgs begin_impl_frame_args() { return begin_impl_frame_args_; }
+ bool MainThreadIsInHighLatencyMode() const {
+ return state_machine_.MainThreadIsInHighLatencyMode();
+ }
+
+ bool ImplThreadIsLikelyInHighLatencyMode() const {
+ return state_machine_.swaps_are_likely_high_latency();
+ }
+
+ bool BeginImplFrameDeadlinePendingForTest() const {
brianderson 2015/05/08 16:52:50 I guess this change wasn't strictly necessary in t
+ return BeginImplFrameDeadlinePending();
+ }
+
~TestScheduler() override;
void NotifyReadyToCommitThenActivateIfNeeded() {
« cc/test/begin_frame_args_test.cc ('K') | « cc/test/begin_frame_args_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698