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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h

Issue 2877103002: [DONT COMMIT] Fix perf regression in CompositorWorkerScheduler (Closed)
Patch Set: test Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHILD_WORKER_SCHEDULER_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_WORKER_SCHEDULER_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_WORKER_SCHEDULER_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_WORKER_SCHEDULER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 scoped_refptr<SchedulerTqmDelegate> main_task_runner); 26 scoped_refptr<SchedulerTqmDelegate> main_task_runner);
27 27
28 // Blink should use WorkerScheduler::DefaultTaskQueue instead of 28 // Blink should use WorkerScheduler::DefaultTaskQueue instead of
29 // ChildScheduler::DefaultTaskRunner. 29 // ChildScheduler::DefaultTaskRunner.
30 virtual scoped_refptr<TaskQueue> DefaultTaskQueue() = 0; 30 virtual scoped_refptr<TaskQueue> DefaultTaskQueue() = 0;
31 31
32 // Must be called before the scheduler can be used. Does any post construction 32 // Must be called before the scheduler can be used. Does any post construction
33 // initialization needed such as initializing idle period detection. 33 // initialization needed such as initializing idle period detection.
34 virtual void Init() = 0; 34 virtual void Init() = 0;
35 35
36 scoped_refptr<TaskQueue> CreateUnthrottledTaskRunner( 36 virtual scoped_refptr<TaskQueue> CreateUnthrottledTaskRunner(
37 TaskQueue::QueueType queue_type); 37 TaskQueue::QueueType queue_type);
38 38
39 protected: 39 protected:
40 explicit WorkerScheduler(std::unique_ptr<SchedulerHelper> helper); 40 explicit WorkerScheduler(std::unique_ptr<SchedulerHelper> helper);
41 41
42 std::unique_ptr<SchedulerHelper> helper_; 42 std::unique_ptr<SchedulerHelper> helper_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(WorkerScheduler); 44 DISALLOW_COPY_AND_ASSIGN(WorkerScheduler);
45 }; 45 };
46 46
47 } // namespace scheduler 47 } // namespace scheduler
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_WORKER_SCHEDULER_H _ 50 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_WORKER_SCHEDULER_H _
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698