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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebBeginFrameArgs_h 5 #ifndef WebBeginFrameArgs_h
6 #define WebBeginFrameArgs_h 6 #define WebBeginFrameArgs_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 struct WebBeginFrameArgs { 10 struct WebBeginFrameArgs {
11 WebBeginFrameArgs(double lastFrameTimeMonotonic, double deadline, double int erval)
12 : lastFrameTimeMonotonic(lastFrameTimeMonotonic)
13 , deadline(deadline)
14 , interval(interval)
15 { }
16
17 // TODO: Remove this constructor once Chromium has been updated.
11 WebBeginFrameArgs(double lastFrameTimeMonotonic) 18 WebBeginFrameArgs(double lastFrameTimeMonotonic)
12 : lastFrameTimeMonotonic(lastFrameTimeMonotonic) 19 : lastFrameTimeMonotonic(lastFrameTimeMonotonic)
20 , deadline(0)
21 , interval(0)
13 { } 22 { }
14 23
15 // FIXME: Upgrade the time in CLOCK_MONOTONIC values to use a TimeTick like 24 // FIXME: Upgrade the time in CLOCK_MONOTONIC values to use a TimeTick like
16 // class rather than a bare double. 25 // class rather than a bare double.
17 26
18 // FIXME: Extend this class to include the fields from Chrome 27 // FIXME: Extend this class to include the fields from Chrome
19 // BeginFrameArgs structure. 28 // BeginFrameArgs structure.
20 29
21 // Time in CLOCK_MONOTONIC that is the most recent vsync time. 30 // Time in CLOCK_MONOTONIC that is the most recent vsync time.
22 double lastFrameTimeMonotonic; 31 double lastFrameTimeMonotonic;
32
33 // Time in CLOCK_MONOTONIC by which the renderer should finish producing the current frame. 0 means a deadline wasn't set.
34 double deadline;
35
36 // Expected delta between two successive frame times. 0 if a regular interva l isn't available.
37 double interval;
23 }; 38 };
24 39
25 } // namespace blink 40 } // namespace blink
26 41
27 #endif 42 #endif
OLDNEW
« 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