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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h

Issue 2517383004: [scheduler] Bunch of improvements for blink scheduler tracing (Closed)
Patch Set: git cl try Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc » ('j') | 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_BASE_TASK_QUEUE_IMPL_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 QueueType GetQueueType() const override; 145 QueueType GetQueueType() const override;
146 146
147 void AsValueInto(base::trace_event::TracedValue* state) const; 147 void AsValueInto(base::trace_event::TracedValue* state) const;
148 148
149 bool GetQuiescenceMonitored() const { return should_monitor_quiescence_; } 149 bool GetQuiescenceMonitored() const { return should_monitor_quiescence_; }
150 bool GetShouldNotifyObservers() const { return should_notify_observers_; } 150 bool GetShouldNotifyObservers() const { return should_notify_observers_; }
151 151
152 void NotifyWillProcessTask(const base::PendingTask& pending_task); 152 void NotifyWillProcessTask(const base::PendingTask& pending_task);
153 void NotifyDidProcessTask(const base::PendingTask& pending_task); 153 void NotifyDidProcessTask(const base::PendingTask& pending_task);
154 154
155 // Can be called on any thread.
156 static const char* PriorityToString(TaskQueue::QueuePriority priority);
157
158 WorkQueue* delayed_work_queue() { 155 WorkQueue* delayed_work_queue() {
159 return main_thread_only().delayed_work_queue.get(); 156 return main_thread_only().delayed_work_queue.get();
160 } 157 }
161 158
162 const WorkQueue* delayed_work_queue() const { 159 const WorkQueue* delayed_work_queue() const {
163 return main_thread_only().delayed_work_queue.get(); 160 return main_thread_only().delayed_work_queue.get();
164 } 161 }
165 162
166 WorkQueue* immediate_work_queue() { 163 WorkQueue* immediate_work_queue() {
167 return main_thread_only().immediate_work_queue.get(); 164 return main_thread_only().immediate_work_queue.get();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 const bool should_report_when_execution_blocked_; 316 const bool should_report_when_execution_blocked_;
320 317
321 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); 318 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl);
322 }; 319 };
323 320
324 } // namespace internal 321 } // namespace internal
325 } // namespace scheduler 322 } // namespace scheduler
326 } // namespace blink 323 } // namespace blink
327 324
328 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 325 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698