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

Unified Diff: public/web/WebBeginFrameArgs.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 | « Source/web/WebViewImpl.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebBeginFrameArgs.h
diff --git a/public/web/WebBeginFrameArgs.h b/public/web/WebBeginFrameArgs.h
index b0e46c486ba98d87b4f96bb0643a47840bfcb207..54a75f9a76ad3076329a7d8aa770ec86e83b7fab 100644
--- a/public/web/WebBeginFrameArgs.h
+++ b/public/web/WebBeginFrameArgs.h
@@ -8,8 +8,17 @@
namespace blink {
struct WebBeginFrameArgs {
+ WebBeginFrameArgs(double lastFrameTimeMonotonic, double deadline, double interval)
+ : lastFrameTimeMonotonic(lastFrameTimeMonotonic)
+ , deadline(deadline)
+ , interval(interval)
+ { }
+
+ // TODO: Remove this constructor once Chromium has been updated.
WebBeginFrameArgs(double lastFrameTimeMonotonic)
: lastFrameTimeMonotonic(lastFrameTimeMonotonic)
+ , deadline(0)
+ , interval(0)
{ }
// FIXME: Upgrade the time in CLOCK_MONOTONIC values to use a TimeTick like
@@ -20,6 +29,12 @@ struct WebBeginFrameArgs {
// Time in CLOCK_MONOTONIC that is the most recent vsync time.
double lastFrameTimeMonotonic;
+
+ // Time in CLOCK_MONOTONIC by which the renderer should finish producing the current frame. 0 means a deadline wasn't set.
+ double deadline;
+
+ // Expected delta between two successive frame times. 0 if a regular interval isn't available.
+ double interval;
};
} // namespace blink
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698