| Index: content/renderer/scheduler/renderer_scheduler.h
|
| diff --git a/content/renderer/scheduler/renderer_scheduler.h b/content/renderer/scheduler/renderer_scheduler.h
|
| index df3355c10c3d048478b6ba77e22271bf24ac3bc3..a9f89a3a007df86a780771a74f12e3b8db39a93f 100644
|
| --- a/content/renderer/scheduler/renderer_scheduler.h
|
| +++ b/content/renderer/scheduler/renderer_scheduler.h
|
| @@ -49,8 +49,16 @@ class CONTENT_EXPORT RendererScheduler {
|
| // a fling). Called by the compositor (impl) thread.
|
| virtual void DidAnimateForInputOnCompositorThread() = 0;
|
|
|
| + // Returns true if the scheduler has reason to believe that high priority work
|
| + // may soon arrive on the main thread, e.g., if gesture events were observed
|
| + // recently.
|
| + // Must be called from the main thread.
|
| + virtual bool ShouldAnticipateHighPriorityWork() = 0;
|
| +
|
| // Returns true if there is high priority work pending on the main thread
|
| - // and the caller should yield to let the scheduler service that work.
|
| + // and the caller should yield to let the scheduler service that work. Note
|
| + // that this is a stricter condition than |ShouldAnticipateHighPriorityWork|,
|
| + // restricted to the case where real work is pending.
|
| // Must be called from the main thread.
|
| virtual bool ShouldYieldForHighPriorityWork() = 0;
|
|
|
|
|