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

Issue 192433002: Creating utility for converting TimeTicks to WebKit double and use it in the Chrome compositor. (Closed)

Created:
6 years, 9 months ago by mithro-old
Modified:
6 years, 9 months ago
Reviewers:
danakj, jamesr, ajuma
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Creating 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -5 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 3 chunks +3 lines, -3 lines 1 comment Download
M webkit/renderer/compositor_bindings/compositor_bindings.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/renderer/compositor_bindings/compositor_bindings_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
A webkit/renderer/compositor_bindings/webkit_time.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A webkit/renderer/compositor_bindings/webkit_time.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
A webkit/renderer/compositor_bindings/webkit_time_unittest.cc View 1 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mithro-old
This CL needs a little more work but I wanted to get it in front ...
6 years, 9 months ago (2014-03-10 14:51:15 UTC) #1
ajuma
> WebKit uses a double in seconds (since 1970 Epoch) for animation I don't think ...
6 years, 9 months ago (2014-03-10 15:01:31 UTC) #2
danakj
Seems like the right place to me. +jamesr for blink<->cc API boundary stuff.
6 years, 9 months ago (2014-03-10 17:13:55 UTC) #3
danakj
Seems like the right place to me. +jamesr for blink<->cc API boundary stuff. (try again)
6 years, 9 months ago (2014-03-10 17:14:14 UTC) #4
jamesr
https://codereview.chromium.org/192433002/diff/1/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc File webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc (left): https://codereview.chromium.org/192433002/diff/1/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc#oldcode19 webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc:19: (monotonic_time - base::TimeTicks()).InSecondsF(), what's wrong with this?
6 years, 9 months ago (2014-03-10 20:37:28 UTC) #5
mithro-old
6 years, 9 months ago (2014-03-11 12:25:58 UTC) #6
mithro-old
On 2014/03/10 17:14:14, danakj wrote: > Seems like the right place to me. +jamesr for ...
6 years, 9 months ago (2014-03-11 12:26:13 UTC) #7
mithro-old
On 2014/03/10 20:37:28, jamesr wrote: > https://codereview.chromium.org/192433002/diff/1/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc > File webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc > (left): > > https://codereview.chromium.org/192433002/diff/1/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc#oldcode19 ...
6 years, 9 months ago (2014-03-11 12:56:42 UTC) #8
danakj
On Tue, Mar 11, 2014 at 8:26 AM, <mithro@mithis.com> wrote: > On 2014/03/10 17:14:14, danakj ...
6 years, 9 months ago (2014-03-11 17:53:37 UTC) #9
jamesr
Not lgtm. I think this is less understandable than the previous code. As Dana said, ...
6 years, 9 months ago (2014-03-11 20:09:54 UTC) #10
mithro-old
6 years, 9 months ago (2014-03-12 05:51:42 UTC) #11
FYI As jamesr requested, I'm abandoning this change.

Powered by Google App Engine
This is Rietveld 408576698