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

Unified Diff: content/renderer/scheduler/renderer_scheduler.h

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to BeginMainFrameNotExpectedSoon Created 5 years, 10 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: content/renderer/scheduler/renderer_scheduler.h
diff --git a/content/renderer/scheduler/renderer_scheduler.h b/content/renderer/scheduler/renderer_scheduler.h
index 6b4ecfaceef4fcd45bd998c5d288eed43c650371..8de1c50d22d505c28ae420e71ba8262ba8c88fbc 100644
--- a/content/renderer/scheduler/renderer_scheduler.h
+++ b/content/renderer/scheduler/renderer_scheduler.h
@@ -36,6 +36,10 @@ class CONTENT_EXPORT RendererScheduler {
// to resource dispatch, foreground HTML parsing, etc...
virtual scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() = 0;
+ // Called to notify about the start of an extended period where no frames
+ // need to be drawn.
Sami 2015/02/11 15:28:25 Could you add a note saying this needs to be calle
Sami 2015/02/11 15:28:25 Could you add a note saying this needs to be calle
rmcilroy 2015/02/13 16:32:45 Done.
+ virtual void BeginFrameNotExpectedSoon() = 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