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 THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Returns the loading task runner. This queue is intended for tasks related | 57 // Returns the loading task runner. This queue is intended for tasks related |
58 // to resource dispatch, foreground HTML parsing, etc... | 58 // to resource dispatch, foreground HTML parsing, etc... |
59 virtual scoped_refptr<TaskQueue> LoadingTaskRunner() = 0; | 59 virtual scoped_refptr<TaskQueue> LoadingTaskRunner() = 0; |
60 | 60 |
61 // Returns the timer task runner. This queue is intended for DOM Timers. | 61 // Returns the timer task runner. This queue is intended for DOM Timers. |
62 // TODO(alexclarke): Get rid of this default timer queue. | 62 // TODO(alexclarke): Get rid of this default timer queue. |
63 virtual scoped_refptr<TaskQueue> TimerTaskRunner() = 0; | 63 virtual scoped_refptr<TaskQueue> TimerTaskRunner() = 0; |
64 | 64 |
65 // Returns a new loading task runner. This queue is intended for tasks related | 65 // Returns a new loading task runner. This queue is intended for tasks related |
66 // to resource dispatch, foreground HTML parsing, etc... | 66 // to resource dispatch, foreground HTML parsing, etc... |
67 virtual scoped_refptr<TaskQueue> NewLoadingTaskRunner(const char* name) = 0; | 67 virtual scoped_refptr<TaskQueue> NewLoadingTaskRunner( |
| 68 TaskQueue::QueueType queue_type) = 0; |
68 | 69 |
69 // Returns a new timer task runner. This queue is intended for DOM Timers. | 70 // Returns a new timer task runner. This queue is intended for DOM Timers. |
70 virtual scoped_refptr<TaskQueue> NewTimerTaskRunner(const char* name) = 0; | 71 virtual scoped_refptr<TaskQueue> NewTimerTaskRunner( |
| 72 TaskQueue::QueueType queue_type) = 0; |
71 | 73 |
72 // Returns a task runner for tasks which should never get throttled. | 74 // Returns a task runner for tasks which should never get throttled. |
73 virtual scoped_refptr<TaskQueue> NewUnthrottledTaskRunner( | 75 virtual scoped_refptr<TaskQueue> NewUnthrottledTaskRunner( |
74 const char* name) = 0; | 76 TaskQueue::QueueType queue_type) = 0; |
75 | 77 |
76 // Returns a new RenderWidgetSchedulingState. The signals from this will be | 78 // Returns a new RenderWidgetSchedulingState. The signals from this will be |
77 // used to make scheduling decisions. | 79 // used to make scheduling decisions. |
78 virtual std::unique_ptr<RenderWidgetSchedulingState> | 80 virtual std::unique_ptr<RenderWidgetSchedulingState> |
79 NewRenderWidgetSchedulingState() = 0; | 81 NewRenderWidgetSchedulingState() = 0; |
80 | 82 |
81 // Called to notify about the start of an extended period where no frames | 83 // Called to notify about the start of an extended period where no frames |
82 // need to be drawn. Must be called from the main thread. | 84 // need to be drawn. Must be called from the main thread. |
83 virtual void BeginFrameNotExpectedSoon() = 0; | 85 virtual void BeginFrameNotExpectedSoon() = 0; |
84 | 86 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 182 |
181 protected: | 183 protected: |
182 RendererScheduler(); | 184 RendererScheduler(); |
183 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 185 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
184 }; | 186 }; |
185 | 187 |
186 } // namespace scheduler | 188 } // namespace scheduler |
187 } // namespace blink | 189 } // namespace blink |
188 | 190 |
189 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ | 191 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ |
OLD | NEW |