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

Unified Diff: Source/platform/scheduler/Scheduler.h

Issue 516103003: scheduler: Tell the scheduler about frame timing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Still need to keep animate() around. Created 6 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
« no previous file with comments | « no previous file | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/Scheduler.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index 27ea27cc82af90f9ddb2a3c172578fd6c09890ea..9524ec37a34d76596985ea4f2c438e84bb52dbef 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -13,12 +13,12 @@
#include "wtf/ThreadingPrimitives.h"
namespace blink {
+class WebThread;
+struct WebBeginFrameArgs;
// The scheduler is an opinionated gateway for arranging work to be run on the
// main thread. It decides which tasks get priority over others based on a
// scheduling policy and the overall system state.
-class WebThread;
-
class PLATFORM_EXPORT Scheduler {
WTF_MAKE_NONCOPYABLE(Scheduler);
public:
@@ -30,6 +30,12 @@ public:
static void initializeOnMainThread();
static void shutdown();
+ // Called to notify about the start of a new frame.
+ void willBeginFrame(const WebBeginFrameArgs&);
+
+ // Called to notify that a previously begun frame was committed.
+ void didCommitFrameToCompositor();
+
// The following entrypoints are used to schedule different types of tasks
// to be run on the main thread. They can be called from any thread.
void postInputTask(const TraceLocation&, const Task&);
« no previous file with comments | « no previous file | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698