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

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

Issue 2778123003: [scheduler] Add WakeupBudgetPool. (Closed)
Patch Set: Addressed comments 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void SetQueuePriority(QueuePriority priority) override; 147 void SetQueuePriority(QueuePriority priority) override;
148 QueuePriority GetQueuePriority() const override; 148 QueuePriority GetQueuePriority() const override;
149 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 149 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
150 void RemoveTaskObserver( 150 void RemoveTaskObserver(
151 base::MessageLoop::TaskObserver* task_observer) override; 151 base::MessageLoop::TaskObserver* task_observer) override;
152 void SetTimeDomain(TimeDomain* time_domain) override; 152 void SetTimeDomain(TimeDomain* time_domain) override;
153 TimeDomain* GetTimeDomain() const override; 153 TimeDomain* GetTimeDomain() const override;
154 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; 154 void SetBlameContext(base::trace_event::BlameContext* blame_context) override;
155 void InsertFence(InsertFencePosition position) override; 155 void InsertFence(InsertFencePosition position) override;
156 void RemoveFence() override; 156 void RemoveFence() override;
157 bool HasFence() const override;
157 bool BlockedByFence() const override; 158 bool BlockedByFence() const override;
158 const char* GetName() const override; 159 const char* GetName() const override;
159 QueueType GetQueueType() const override; 160 QueueType GetQueueType() const override;
160 void SetObserver(Observer* observer) override; 161 void SetObserver(Observer* observer) override;
161 162
162 // Returns true if a (potentially hypothetical) task with the specified 163 // Returns true if a (potentially hypothetical) task with the specified
163 // |enqueue_order| could run on the queue. Must be called from the main 164 // |enqueue_order| could run on the queue. Must be called from the main
164 // thread. 165 // thread.
165 bool CouldTaskRun(EnqueueOrder enqueue_order) const; 166 bool CouldTaskRun(EnqueueOrder enqueue_order) const;
166 167
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 const bool should_report_when_execution_blocked_; 388 const bool should_report_when_execution_blocked_;
388 389
389 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); 390 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl);
390 }; 391 };
391 392
392 } // namespace internal 393 } // namespace internal
393 } // namespace scheduler 394 } // namespace scheduler
394 } // namespace blink 395 } // namespace blink
395 396
396 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 397 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698