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_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ |
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ |
7 | 7 |
8 #include "platform/scheduler/renderer/web_view_scheduler.h" | 8 #include "platform/scheduler/renderer/web_view_scheduler.h" |
9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 // run earlier than it normally would. | 65 // run earlier than it normally would. |
66 virtual void PostNonNestableIdleTask(const WebTraceLocation&, | 66 virtual void PostNonNestableIdleTask(const WebTraceLocation&, |
67 WebThread::IdleTask*) = 0; | 67 WebThread::IdleTask*) = 0; |
68 | 68 |
69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread. | 69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread. |
70 virtual WebTaskRunner* LoadingTaskRunner() = 0; | 70 virtual WebTaskRunner* LoadingTaskRunner() = 0; |
71 | 71 |
72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread. | 72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread. |
73 virtual WebTaskRunner* TimerTaskRunner() = 0; | 73 virtual WebTaskRunner* TimerTaskRunner() = 0; |
74 | 74 |
75 // Returns a WebTaskRunner for compositor tasks. | |
Sami
2017/05/04 00:33:38
Could add a bit more scary explanation here how th
Dan Elphick
2017/05/04 16:47:15
Done.
| |
76 virtual WebTaskRunner* CompositorTaskRunner() = 0; | |
77 | |
75 // Creates a new WebViewScheduler for a given WebView. Must be called from | 78 // Creates a new WebViewScheduler for a given WebView. Must be called from |
76 // the associated WebThread. | 79 // the associated WebThread. |
77 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler( | 80 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler( |
78 InterventionReporter*, | 81 InterventionReporter*, |
79 WebViewScheduler::WebViewSchedulerSettings*) = 0; | 82 WebViewScheduler::WebViewSchedulerSettings*) = 0; |
80 | 83 |
81 // Suspends the timer queue and increments the timer queue suspension count. | 84 // Suspends the timer queue and increments the timer queue suspension count. |
82 // May only be called from the main thread. | 85 // May only be called from the main thread. |
83 virtual void SuspendTimerQueue() = 0; | 86 virtual void SuspendTimerQueue() = 0; |
84 | 87 |
(...skipping 16 matching lines...) Expand all Loading... | |
101 | 104 |
102 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); | 105 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); |
103 void PostNonNestableIdleTask(const WebTraceLocation&, | 106 void PostNonNestableIdleTask(const WebTraceLocation&, |
104 std::unique_ptr<IdleTask>); | 107 std::unique_ptr<IdleTask>); |
105 #endif | 108 #endif |
106 }; | 109 }; |
107 | 110 |
108 } // namespace blink | 111 } // namespace blink |
109 | 112 |
110 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H _ | 113 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H _ |
OLD | NEW |