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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h

Issue 2345483002: [scheduler] Throttle background frames with 1% CPU limit (Closed)
Patch Set: [scheduler] Throttle background frames with 1% CPU limit Created 4 years, 3 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/renderer/web_view_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
index a4b7c679dc8ae299d214eb4aa7f35b86fd22484c..1b1e57c88cd17528ead4a3e32824a76640e9af71 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
@@ -59,6 +59,8 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
void Unregister(WebFrameSchedulerImpl* frame_scheduler);
private:
+ friend class WebFrameSchedulerImpl;
Sami 2016/09/27 17:11:56 Instead of this could we just adjust the public AP
alex clarke (OOO till 29th) 2016/09/27 17:16:23 +1
altimin 2016/09/27 17:38:23 Done.
+
void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance);
void ApplyVirtualTimePolicy();
@@ -73,6 +75,7 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
bool allow_virtual_time_to_advance_;
bool have_seen_loading_task_;
bool virtual_time_;
+ TaskQueueThrottler::TimeBudgetPool* background_time_budget_pool_;
Sami 2016/09/27 17:11:56 Not owned?
altimin 2016/09/27 17:38:23 Done.
DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698