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

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

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 | « Source/platform/scheduler/Scheduler.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/Scheduler.cpp
diff --git a/Source/platform/scheduler/Scheduler.cpp b/Source/platform/scheduler/Scheduler.cpp
index fb331ac6e3766aad23db042059ad0c43b549bb18..4a447721f58921b8fe0500568ed583f76288b5c8 100644
--- a/Source/platform/scheduler/Scheduler.cpp
+++ b/Source/platform/scheduler/Scheduler.cpp
@@ -126,6 +126,16 @@ Scheduler::~Scheduler()
}
}
+void Scheduler::willBeginFrame(const WebBeginFrameArgs& args)
+{
+ // TODO: Use frame deadline and interval to schedule idle tasks.
+}
+
+void Scheduler::didCommitFrameToCompositor()
+{
+ // TODO: Trigger the frame deadline immediately.
+}
+
void Scheduler::scheduleIdleTask(const TraceLocation& location, const IdleTask& idleTask)
{
// TODO: send a real allottedTime here.
« no previous file with comments | « Source/platform/scheduler/Scheduler.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698