| 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 CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
| 6 #define CONTENT_RENDERER_SCHEDULER_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 "content/child/scheduler/child_scheduler.h" | 9 #include "components/scheduler/child/child_scheduler.h" |
| 10 #include "content/child/scheduler/single_thread_idle_task_runner.h" | 10 #include "components/scheduler/child/single_thread_idle_task_runner.h" |
| 11 #include "content/common/content_export.h" | 11 #include "components/scheduler/scheduler_export.h" |
| 12 #include "third_party/WebKit/public/web/WebInputEvent.h" | 12 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 struct BeginFrameArgs; | 15 struct BeginFrameArgs; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace scheduler { |
| 19 | 19 |
| 20 class CONTENT_EXPORT RendererScheduler : public ChildScheduler { | 20 class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
| 21 public: | 21 public: |
| 22 ~RendererScheduler() override; | 22 ~RendererScheduler() override; |
| 23 static scoped_ptr<RendererScheduler> Create(); | 23 static scoped_ptr<RendererScheduler> Create(); |
| 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... |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Decrements the timer queue suspension count and re-enables the timer queue | 78 // Decrements the timer queue suspension count and re-enables the timer queue |
| 79 // if the suspension count is zero and the current schduler policy allows it. | 79 // if the suspension count is zero and the current schduler policy allows it. |
| 80 virtual void ResumeTimerQueue() = 0; | 80 virtual void ResumeTimerQueue() = 0; |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 RendererScheduler(); | 83 RendererScheduler(); |
| 84 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 84 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace content | 87 } // namespace scheduler |
| 88 | 88 |
| 89 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ | 89 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
| OLD | NEW |