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

Unified Diff: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: fix Sami's comments Created 3 years, 8 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/public/platform/scheduler/renderer/renderer_scheduler.h
diff --git a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
index 85485f3548736b8d8ec3c9d87392767a4b36cfd1..e1949dbda70846e570b2287db0c9052f9bdbbca6 100644
--- a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
+++ b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
@@ -85,6 +85,12 @@ class BLINK_PLATFORM_EXPORT RendererScheduler : public ChildScheduler {
// need to be drawn. Must be called from the main thread.
virtual void BeginFrameNotExpectedSoon() = 0;
+ // Called to notify about the start of a period where main frames are not
+ // scheduled and so short idle work can be scheduled. This will precede
+ // BeginFrameNotExpectedSoon and is also called when the compositor is busy
sunnyps 2017/04/20 18:36:48 nit: compositor may be busy
Dan Elphick 2017/04/26 16:31:44 Done.
+ // but the main thread is not.
+ virtual void BeginMainFrameNotExpectedUntil(base::TimeTicks time) = 0;
+
// Called to notify about the start of a new frame. Must be called from the
// main thread.
virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0;

Powered by Google App Engine
This is Rietveld 408576698