Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / web / WebBeginFrameArgs.h
blob5a310281dc352b3bc4a1ea915abe41e1617a690b
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
3 // found in the LICENSE file.
5 #ifndef WebBeginFrameArgs_h
6 #define WebBeginFrameArgs_h
8 namespace blink {
10 struct WebBeginFrameArgs {
11 WebBeginFrameArgs(double lastFrameTimeMonotonic, double deadline, double interval)
12 : lastFrameTimeMonotonic(lastFrameTimeMonotonic)
13 , deadline(deadline)
14 , interval(interval)
15 { }
17 // FIXME: Upgrade the time in CLOCK_MONOTONIC values to use a TimeTick like
18 // class rather than a bare double.
20 // FIXME: Extend this class to include the fields from Chrome
21 // BeginFrameArgs structure.
23 // Time in CLOCK_MONOTONIC that is the most recent vsync time.
24 double lastFrameTimeMonotonic;
26 // Time in CLOCK_MONOTONIC by which the renderer should finish producing the current frame. 0 means a deadline wasn't set.
27 double deadline;
29 // Expected delta between two successive frame times. 0 if a regular interval isn't available.
30 double interval;
33 } // namespace blink
35 #endif