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

Unified Diff: components/scheduler/renderer/web_view_scheduler_impl.h

Issue 2023033003: scheduler: Throttle timers in out-of-view frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add cross origin check, tests Created 4 years, 6 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: components/scheduler/renderer/web_view_scheduler_impl.h
diff --git a/components/scheduler/renderer/web_view_scheduler_impl.h b/components/scheduler/renderer/web_view_scheduler_impl.h
index f061517bad15bb455871d94e341f093f8b75a4d1..1ca1ef5eb37489f1fbb7103b40cb548412b8ae08 100644
--- a/components/scheduler/renderer/web_view_scheduler_impl.h
+++ b/components/scheduler/renderer/web_view_scheduler_impl.h
@@ -35,7 +35,8 @@ class SCHEDULER_EXPORT WebViewSchedulerImpl : public blink::WebViewScheduler {
public:
WebViewSchedulerImpl(blink::WebView* web_view,
RendererSchedulerImpl* renderer_scheduler,
- bool disable_background_timer_throttling);
+ bool disable_background_timer_throttling,
+ bool allow_hidden_timer_throttling);
~WebViewSchedulerImpl() override;
@@ -70,6 +71,7 @@ class SCHEDULER_EXPORT WebViewSchedulerImpl : public blink::WebViewScheduler {
bool page_visible_;
bool disable_background_timer_throttling_;
bool allow_virtual_time_to_advance_;
+ bool allow_hidden_timer_throttling_;
DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698