| 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_RENDERER_SCHEDULER
_IMPL_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_IMPL_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_IMPL_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // Returns a task runner where tasks run at the highest possible priority. | 152 // Returns a task runner where tasks run at the highest possible priority. |
| 153 scoped_refptr<TaskQueue> ControlTaskRunner(); | 153 scoped_refptr<TaskQueue> ControlTaskRunner(); |
| 154 | 154 |
| 155 void RegisterTimeDomain(TimeDomain* time_domain); | 155 void RegisterTimeDomain(TimeDomain* time_domain); |
| 156 void UnregisterTimeDomain(TimeDomain* time_domain); | 156 void UnregisterTimeDomain(TimeDomain* time_domain); |
| 157 | 157 |
| 158 // Tells the scheduler that all TaskQueues should use virtual time. | 158 // Tells the scheduler that all TaskQueues should use virtual time. |
| 159 void EnableVirtualTime(); | 159 void EnableVirtualTime(); |
| 160 | 160 |
| 161 // Migrates all task queues to real time. |
| 162 void DisableVirtualTimeForTesting(); |
| 163 |
| 161 void AddWebViewScheduler(WebViewSchedulerImpl* web_view_scheduler); | 164 void AddWebViewScheduler(WebViewSchedulerImpl* web_view_scheduler); |
| 162 void RemoveWebViewScheduler(WebViewSchedulerImpl* web_view_scheduler); | 165 void RemoveWebViewScheduler(WebViewSchedulerImpl* web_view_scheduler); |
| 163 | 166 |
| 164 void AddTaskTimeObserver(TaskTimeObserver* task_time_observer); | 167 void AddTaskTimeObserver(TaskTimeObserver* task_time_observer); |
| 165 void RemoveTaskTimeObserver(TaskTimeObserver* task_time_observer); | 168 void RemoveTaskTimeObserver(TaskTimeObserver* task_time_observer); |
| 166 | 169 |
| 167 // Snapshots this RendererScheduler for tracing. | 170 // Snapshots this RendererScheduler for tracing. |
| 168 void CreateTraceEventObjectSnapshot() const; | 171 void CreateTraceEventObjectSnapshot() const; |
| 169 | 172 |
| 170 // Called when one of associated WebView schedulers has changed audio | 173 // Called when one of associated WebView schedulers has changed audio |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 | 530 |
| 528 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 531 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 529 | 532 |
| 530 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 533 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 531 }; | 534 }; |
| 532 | 535 |
| 533 } // namespace scheduler | 536 } // namespace scheduler |
| 534 } // namespace blink | 537 } // namespace blink |
| 535 | 538 |
| 536 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_IMPL_H_ | 539 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_IMPL_H_ |
| OLD | NEW |