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

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

Issue 2258133002: [scheduler] Implement time-based cpu throttling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed similarity 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 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();

Powered by Google App Engine
This is Rietveld 408576698