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

Issue 321373003: Changing animate to beginFrame and use struct rather than naked double to allow extension. (Closed)

Created:
6 years, 6 months ago by mithro-old
Modified:
6 years, 5 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, dglazkov+blink, dstockwell, Eric Willigers, jamesr, Mike Lawther (Google), rjwright, Steve Block, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Changing animate to beginFrame and use struct rather than naked double to allow extension. This change makes it significantly easier to extend the interface for the needs for the Blink scheduler, web animations engine and future similar changes. It also brings the concept in Blink closer to the values in Chrome. BUG=346230 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178493

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fixing Adam+Shane's feedback. #

Total comments: 4

Patch Set 3 : Adding missing <limit> include. #

Patch Set 4 : Rebasing onto master. #

Total comments: 1

Patch Set 5 : Rebase onto origin/master. #

Patch Set 6 : Refactoring and reducing this patch based on nduca's suggestions. #

Total comments: 6

Patch Set 7 : Fixing Sami's suggestions. #

Total comments: 2

Patch Set 8 : Using const reference. #

Patch Set 9 : Reducing the surface area of this patch even further. #

Total comments: 11

Patch Set 10 : Fixing review comments. #

Patch Set 11 : Adding another FIXME comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
M Source/web/WebPagePopupImpl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M Source/web/WebPopupMenuImpl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPopupMenuImpl.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
A public/web/WebBeginFrameArgs.h View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
M public/web/WebWidget.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 37 (0 generated)
mithro-old
Hi Adam, This patch isn't quite ready, but wanted to get it in front of ...
6 years, 6 months ago (2014-06-11 10:18:00 UTC) #1
abarth-chromium
Seems reasonable. https://codereview.chromium.org/321373003/diff/1/public/platform/WebFrameTime.h File public/platform/WebFrameTime.h (right): https://codereview.chromium.org/321373003/diff/1/public/platform/WebFrameTime.h#newcode39 public/platform/WebFrameTime.h:39: WebFrameTime(double flt, uint64_t d, uint64_t fdt) Please ...
6 years, 6 months ago (2014-06-11 19:33:02 UTC) #2
mithro-old
When ready, who would be the correct person to review? Tim 'mithro' Ansell On 12 ...
6 years, 6 months ago (2014-06-11 21:50:39 UTC) #3
abarth-chromium
On 2014/06/11 at 21:50:39, mithro wrote: > When ready, who would be the correct person ...
6 years, 6 months ago (2014-06-11 21:52:39 UTC) #4
shans
On 2014/06/11 21:52:39, abarth wrote: > On 2014/06/11 at 21:50:39, mithro wrote: > > When ...
6 years, 6 months ago (2014-06-13 06:09:13 UTC) #5
mithro-old
Hello James, I have fixed the comments from Adam and Shane had, can you please ...
6 years, 6 months ago (2014-06-18 03:36:45 UTC) #6
jamesr
Where are these numbers going to come from on the chromium side?
6 years, 6 months ago (2014-06-18 05:49:38 UTC) #7
mithro-old
On 2014/06/18 05:49:38, jamesr wrote: > Where are these numbers going to come from on ...
6 years, 6 months ago (2014-06-18 06:03:26 UTC) #8
mithro-old
On 2014/06/18 06:03:26, mithro wrote: > On 2014/06/18 05:49:38, jamesr wrote: > > Where are ...
6 years, 6 months ago (2014-06-24 01:03:27 UTC) #9
picksi
Hi, Stumbled across this CL while browsing. I'm new to Chrome so my intuitions may ...
6 years, 6 months ago (2014-06-24 10:10:26 UTC) #10
mithro-old
Hi Simon, This code is a little different because the public/ directory of Blink contains ...
6 years, 5 months ago (2014-07-01 06:04:42 UTC) #11
Sami
Thanks Tim, this looks super useful! https://codereview.chromium.org/321373003/diff/80001/public/platform/WebFrameTime.h File public/platform/WebFrameTime.h (right): https://codereview.chromium.org/321373003/diff/80001/public/platform/WebFrameTime.h#newcode38 public/platform/WebFrameTime.h:38: struct WebFrameTime { ...
6 years, 5 months ago (2014-07-02 13:24:38 UTC) #12
mithro-old
Hi Sami, Sorry about the brevity, writing this on my phone so you get this ...
6 years, 5 months ago (2014-07-02 14:53:30 UTC) #13
blink-reviews
Thanks for the quick reply. Maybe I'm coming at this from a different angle, but ...
6 years, 5 months ago (2014-07-02 15:13:26 UTC) #14
eseidel
WebFrameTime is a bit odd of a name, since it includes more that just the ...
6 years, 5 months ago (2014-07-02 17:00:48 UTC) #15
eseidel
I think this is OK and we can iterate from here. I also agree with ...
6 years, 5 months ago (2014-07-02 17:08:11 UTC) #16
Sami
Right, I don't want to block progress here since I think this is definitely moving ...
6 years, 5 months ago (2014-07-02 18:02:05 UTC) #17
jamesr
This feels too speculative to put in as public API. We don't have any code ...
6 years, 5 months ago (2014-07-02 18:03:29 UTC) #18
mithro-old
On 2014/07/02 18:03:29, jamesr wrote: > This feels too speculative to put in as public ...
6 years, 5 months ago (2014-07-07 04:41:56 UTC) #19
nduca
TLDR, for this patch, just do this: class WebBeginFrameArgs { double frame_begin_time; }; WebWidget::BeginFrame(const WebBeginFrameArgs& ...
6 years, 5 months ago (2014-07-15 19:08:30 UTC) #20
mithro-old
Hi everyone, Could you all please take another look (specially jamesr). I've incorporated Nat's feedback ...
6 years, 5 months ago (2014-07-16 01:20:54 UTC) #21
Sami
Thanks Tim, I think this version gives us a good foundation. https://codereview.chromium.org/321373003/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): ...
6 years, 5 months ago (2014-07-16 10:41:15 UTC) #22
mithro-old
https://codereview.chromium.org/321373003/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/321373003/diff/140001/Source/web/WebViewImpl.cpp#newcode1706 Source/web/WebViewImpl.cpp:1706: TRACE_EVENT0("blink", "WebViewImpl::animate"); On 2014/07/16 10:41:15, Sami wrote: > Please ...
6 years, 5 months ago (2014-07-16 14:26:49 UTC) #23
Sami
https://codereview.chromium.org/321373003/diff/160001/public/web/WebWidget.h File public/web/WebWidget.h (right): https://codereview.chromium.org/321373003/diff/160001/public/web/WebWidget.h#newcode97 public/web/WebWidget.h:97: virtual void beginFrame(const WebBeginFrameArgs frameTime) { } Should be ...
6 years, 5 months ago (2014-07-16 14:38:55 UTC) #24
mithro-old
https://codereview.chromium.org/321373003/diff/160001/public/web/WebWidget.h File public/web/WebWidget.h (right): https://codereview.chromium.org/321373003/diff/160001/public/web/WebWidget.h#newcode97 public/web/WebWidget.h:97: virtual void beginFrame(const WebBeginFrameArgs frameTime) { } On 2014/07/16 ...
6 years, 5 months ago (2014-07-17 03:59:17 UTC) #25
Sami
Thanks, lgtm! https://codereview.chromium.org/321373003/diff/200001/public/web/WebBeginFrameArgs.h File public/web/WebBeginFrameArgs.h (right): https://codereview.chromium.org/321373003/diff/200001/public/web/WebBeginFrameArgs.h#newcode1 public/web/WebBeginFrameArgs.h:1: /* There's a shorter license block we ...
6 years, 5 months ago (2014-07-17 10:37:46 UTC) #26
nduca
https://codereview.chromium.org/321373003/diff/200001/public/web/WebBeginFrameArgs.h File public/web/WebBeginFrameArgs.h (right): https://codereview.chromium.org/321373003/diff/200001/public/web/WebBeginFrameArgs.h#newcode45 public/web/WebBeginFrameArgs.h:45: double lastFrameTime; lastFrameTimeMonotonic
6 years, 5 months ago (2014-07-17 18:26:43 UTC) #27
jamesr
lgtm https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp File Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp#newcode285 Source/web/WebPagePopupImpl.cpp:285: PageWidgetDelegate::animate(m_page.get(), monotonicallyIncreasingTime()); do you have a particular reason ...
6 years, 5 months ago (2014-07-17 19:58:17 UTC) #28
nduca
i think your cl description needs some updating
6 years, 5 months ago (2014-07-17 22:06:45 UTC) #29
mithro-old
https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp File Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp#newcode285 Source/web/WebPagePopupImpl.cpp:285: PageWidgetDelegate::animate(m_page.get(), monotonicallyIncreasingTime()); On 2014/07/17 19:58:16, jamesr wrote: > do ...
6 years, 5 months ago (2014-07-18 00:21:05 UTC) #30
jamesr
https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp File Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp#newcode285 Source/web/WebPagePopupImpl.cpp:285: PageWidgetDelegate::animate(m_page.get(), monotonicallyIncreasingTime()); On 2014/07/18 00:21:04, mithro(OO till 11 Aug) ...
6 years, 5 months ago (2014-07-18 00:30:16 UTC) #31
mithro-old
On 2014/07/18 00:30:16, jamesr wrote: > https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp > File Source/web/WebPagePopupImpl.cpp (right): > > https://codereview.chromium.org/321373003/diff/200001/Source/web/WebPagePopupImpl.cpp#newcode285 > ...
6 years, 5 months ago (2014-07-18 00:34:00 UTC) #32
mithro-old
Anyone got any last comments?
6 years, 5 months ago (2014-07-18 00:44:45 UTC) #33
nduca
go for it, lgtm
6 years, 5 months ago (2014-07-18 20:49:44 UTC) #34
mithro-old
The CQ bit was checked by mithro@mithis.com
6 years, 5 months ago (2014-07-18 22:47:12 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mithro@mithis.com/321373003/240001
6 years, 5 months ago (2014-07-18 22:47:38 UTC) #36
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 23:04:03 UTC) #37
Message was sent while issue was closed.
Change committed as 178493

Powered by Google App Engine
This is Rietveld 408576698