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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h

Issue 2416803003: Record PendingTaskCount when a backgrounded renderer is suspended. (Closed)
Patch Set: Add GetNumberOfPendingTasks to TaskQueueManager Created 4 years, 2 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/child/scheduler_helper.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h b/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
index 5b6b7301bb6028292df7c69938b40d3a03ae4d02..0136811f57ca531f6286aed8d1a256f8a648523c 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
@@ -98,6 +98,8 @@ class BLINK_PLATFORM_EXPORT SchedulerHelper
bool GetAndClearSystemIsQuiescentBit();
TaskQueue* CurrentlyExecutingTaskQueue() const;
+ size_t GetNumberOfPendingTasks() const;
+
// Test helpers.
void SetWorkBatchSizeForTesting(size_t work_batch_size);
TaskQueueManager* GetTaskQueueManagerForTesting();

Powered by Google App Engine
This is Rietveld 408576698