| OLD | NEW |
| 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 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
| 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "components/scheduler/child/child_scheduler.h" | 9 #include "components/scheduler/child/child_scheduler.h" |
| 10 #include "components/scheduler/child/single_thread_idle_task_runner.h" | 10 #include "components/scheduler/child/single_thread_idle_task_runner.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Returns the compositor task runner. | 25 // Returns the compositor task runner. |
| 26 virtual scoped_refptr<base::SingleThreadTaskRunner> | 26 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 27 CompositorTaskRunner() = 0; | 27 CompositorTaskRunner() = 0; |
| 28 | 28 |
| 29 // Returns the loading task runner. This queue is intended for tasks related | 29 // Returns the loading task runner. This queue is intended for tasks related |
| 30 // to resource dispatch, foreground HTML parsing, etc... | 30 // to resource dispatch, foreground HTML parsing, etc... |
| 31 virtual scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() = 0; | 31 virtual scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() = 0; |
| 32 | 32 |
| 33 // Returns the timer task runner. This queue is intended for DOM Timers. | 33 // Returns the timer task runner. This queue is intended for DOM Timers. |
| 34 virtual scoped_refptr<base::SingleThreadTaskRunner> TimerTaskRunner() = 0; | 34 virtual scoped_refptr<TaskQueue> TimerTaskRunner() = 0; |
| 35 | 35 |
| 36 // Called to notify about the start of an extended period where no frames | 36 // Called to notify about the start of an extended period where no frames |
| 37 // need to be drawn. Must be called from the main thread. | 37 // need to be drawn. Must be called from the main thread. |
| 38 virtual void BeginFrameNotExpectedSoon() = 0; | 38 virtual void BeginFrameNotExpectedSoon() = 0; |
| 39 | 39 |
| 40 // Called to notify about the start of a new frame. Must be called from the | 40 // Called to notify about the start of a new frame. Must be called from the |
| 41 // main thread. | 41 // main thread. |
| 42 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; | 42 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; |
| 43 | 43 |
| 44 // Called to notify that a previously begun frame was committed. Must be | 44 // Called to notify that a previously begun frame was committed. Must be |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void ResumeTimerQueue() = 0; | 99 virtual void ResumeTimerQueue() = 0; |
| 100 | 100 |
| 101 protected: | 101 protected: |
| 102 RendererScheduler(); | 102 RendererScheduler(); |
| 103 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 103 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace scheduler | 106 } // namespace scheduler |
| 107 | 107 |
| 108 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 108 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
| OLD | NEW |