Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: components/scheduler/renderer/renderer_scheduler.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/null_renderer_scheduler.cc ('k') | components/scheduler/renderer/renderer_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698