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

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

Issue 2653643002: Move has_incoming_immediate_work to the TaskQueueManager (Closed)
Patch Set: Add some tracing Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
index eae226c89b832603a9662ce2004b6622ab1fbb0c..e517f4cb319d93a45ca7df2ac422a2d392a8b127 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
@@ -140,6 +140,11 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
const char* GetName() const override;
QueueType GetQueueType() const override;
+ // Returns true if a posted immediate task could run (i.e. the queue is
+ // enabled and not blocked by a fence). Must only be called from the thread
+ // this task queue was created on.
+ bool ImmediateTaskCouldRun() const;
+
// Must only be called from the thread this task queue was created on.
void ReloadImmediateWorkQueueIfEmpty();
@@ -298,9 +303,6 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
// Can be called from any thread.
WTF::Deque<TaskQueueImpl::Task> TakeImmediateIncomingQueue();
- // As BlockedByFence but safe to be called while locked.
- bool BlockedByFenceLocked() const;
-
void TraceQueueSize(bool is_locked) const;
static void QueueAsValueInto(const WTF::Deque<Task>& queue,
base::trace_event::TracedValue* state);

Powered by Google App Engine
This is Rietveld 408576698