DescriptionCreating utility for converting TimeTicks to WebKit double and use it in the Chrome compositor.
From third_party/WebKit/public/platform/Platform.h
// Monotonically increasing time in seconds from an arbitrary fixed point in the past.
// This function is expected to return at least millisecond-precision values. For this reason,
// it is recommended that the fixed point be no further in the past than the epoch.
virtual double monotonicallyIncreasingTime() { return 0; }
TimeTicks deliberately doesn't have a way to be converted to a double in seconds
because doing so inside Chrome shouldn't occur. This patch adds a method for
doing the conversion (and tests that it works) at the boundary. The conversion
functions also check for common problematic conversions.
BUG=349328
Patch Set 1 #
Total comments: 1
Patch Set 2 : Reworking webkit_time, adding other users. #
Total comments: 1
Messages
Total messages: 11 (0 generated)
|