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

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

Issue 2533603002: [scheduler] Add options to TaskQueue::InsertFence (Closed)
Patch Set: Reupload 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 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 0c16a7a95fa6c0bfeefee53eb1749180fa31295b..b15513b5978d56f1c0d50564aa5055bb68657ff1 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
@@ -133,7 +133,7 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
void SetTimeDomain(TimeDomain* time_domain) override;
TimeDomain* GetTimeDomain() const override;
void SetBlameContext(base::trace_event::BlameContext* blame_context) override;
- void InsertFence() override;
+ void InsertFence(InsertFencePosition position) override;
void RemoveFence() override;
bool BlockedByFence() const override;
@@ -193,6 +193,10 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
main_thread_only().heap_handle = heap_handle;
}
+ // Returns true if queue is enabled and is not blocked by fence.
+ // Test-only and main-thread-only.
+ bool IsQueueUnblockedForTest() const;
alex clarke (OOO till 29th) 2016/11/25 16:20:49 minor: I'd slightly prefer a GetFenceForTest() and
altimin 2016/11/25 16:59:25 Done.
+
private:
friend class WorkQueue;
friend class WorkQueueTest;

Powered by Google App Engine
This is Rietveld 408576698