 Chromium Code Reviews
 Chromium Code Reviews Issue 2258133002:
  [scheduler] Implement time-based cpu throttling.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 2258133002:
  [scheduler] Implement time-based cpu throttling.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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 09fe1754954f13cb0febfe03eeec96eb006c27e5..11e575a41f5bdf2b66cbe8a78b00e11a78594215 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 | 
| @@ -14,6 +14,7 @@ | 
| #include "public/platform/WebCommon.h" | 
| #include "public/platform/WebScheduler.h" | 
| #include "public/platform/WebViewScheduler.h" | 
| +#include "platform/scheduler/renderer/task_queue_throttler.h" | 
| namespace base { | 
| namespace trace_event { | 
| @@ -58,6 +59,8 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler { | 
| void Unregister(WebFrameSchedulerImpl* frame_scheduler); | 
| private: | 
| + friend class WebFrameSchedulerImpl; | 
| 
Sami
2016/09/07 15:20:44
Why's this needed?
 
altimin
2016/09/09 15:43:58
Thanks for spotting, left from prototyping phase.
 | 
| + | 
| void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance); | 
| void ApplyVirtualTimePolicy(); |