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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/test/fake_renderer_scheduler.cc

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Dave's comments. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "public/platform/scheduler/test/fake_renderer_scheduler.h" 5 #include "public/platform/scheduler/test/fake_renderer_scheduler.h"
6 6
7 #include "public/platform/WebThread.h" 7 #include "public/platform/WebThread.h"
8 8
9 namespace blink { 9 namespace blink {
10 namespace scheduler { 10 namespace scheduler {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void FakeRendererScheduler::ResumeTimerQueue() {} 112 void FakeRendererScheduler::ResumeTimerQueue() {}
113 113
114 void FakeRendererScheduler::SetTimerQueueSuspensionWhenBackgroundedEnabled( 114 void FakeRendererScheduler::SetTimerQueueSuspensionWhenBackgroundedEnabled(
115 bool enabled) {} 115 bool enabled) {}
116 116
117 void FakeRendererScheduler::SetTopLevelBlameContext( 117 void FakeRendererScheduler::SetTopLevelBlameContext(
118 base::trace_event::BlameContext* blame_context) {} 118 base::trace_event::BlameContext* blame_context) {}
119 119
120 void FakeRendererScheduler::SetRAILModeObserver(RAILModeObserver* observer) {} 120 void FakeRendererScheduler::SetRAILModeObserver(RAILModeObserver* observer) {}
121 121
122 bool FakeRendererScheduler::
123 ShouldForceEventsNonBlockingForUnresponsiveMainThread() const {
124 return false;
125 }
126
122 } // namespace scheduler 127 } // namespace scheduler
123 } // namespace blink 128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698