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

Issue 285373008: Android: Decouple animate from vsync (Closed)

Created:
6 years, 7 months ago by no sievers
Modified:
6 years, 7 months ago
Reviewers:
Ted C, Sami, brianderson
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

Android: Decouple animate from vsync Add animation callback that happens before Composite. SetNeedsAnimate() schedules animations with a deadline. New frames arriving from the renderer will still composite immediately, in which case they also take care of the animation update. Remove |should_composite_on_vsync_| logic that was used for tab stack animations and also use the same deadline logic instead. BUG=373075 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273062

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : address comments #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : address comment #

Patch Set 7 : rebase #

Total comments: 6

Patch Set 8 : Sami's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -71 lines) Patch
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 3 chunks +37 lines, -10 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 chunks +131 lines, -57 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M ui/base/android/window_android.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/android/window_android.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M ui/base/android/window_android_compositor.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/android/window_android_observer.h View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 20 (0 generated)
no sievers
ptal
6 years, 7 months ago (2014-05-16 01:59:55 UTC) #1
brianderson
https://codereview.chromium.org/285373008/diff/40001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/40001/content/browser/renderer_host/compositor_impl_android.cc#newcode275 content/browser/renderer_host/compositor_impl_android.cc:275: if (will_composite_eventually_) Can we also return early here if ...
6 years, 7 months ago (2014-05-21 17:22:59 UTC) #2
no sievers
Comments addressed. I redid it a bit to only ever have one pending composite task ...
6 years, 7 months ago (2014-05-23 02:49:44 UTC) #3
no sievers
https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc#newcode300 content/browser/renderer_host/compositor_impl_android.cc:300: // vsync. You think we should do this for ...
6 years, 7 months ago (2014-05-23 18:27:21 UTC) #4
brianderson
https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc#newcode282 content/browser/renderer_host/compositor_impl_android.cc:282: DCHECK(WillComposite()); The value of WillComposite() will only change if ...
6 years, 7 months ago (2014-05-23 22:34:25 UTC) #5
no sievers
https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/60001/content/browser/renderer_host/compositor_impl_android.cc#newcode282 content/browser/renderer_host/compositor_impl_android.cc:282: DCHECK(WillComposite()); On 2014/05/23 22:34:25, brianderson wrote: > The value ...
6 years, 7 months ago (2014-05-27 18:20:44 UTC) #6
Sami
https://codereview.chromium.org/285373008/diff/120001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/120001/content/browser/renderer_host/compositor_impl_android.cc#newcode355 content/browser/renderer_host/compositor_impl_android.cc:355: root_window_->Animate(gfx::FrameTime::Now()); Should we use the same gfx::FrameTime::Now() for animating ...
6 years, 7 months ago (2014-05-27 19:54:04 UTC) #7
no sievers
https://codereview.chromium.org/285373008/diff/120001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/285373008/diff/120001/content/browser/renderer_host/compositor_impl_android.cc#newcode355 content/browser/renderer_host/compositor_impl_android.cc:355: root_window_->Animate(gfx::FrameTime::Now()); On 2014/05/27 19:54:05, Sami wrote: > Should we ...
6 years, 7 months ago (2014-05-27 20:05:16 UTC) #8
brianderson
lgtm
6 years, 7 months ago (2014-05-27 21:00:45 UTC) #9
no sievers
The CQ bit was checked by sievers@chromium.org
6 years, 7 months ago (2014-05-27 21:08:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/285373008/110009
6 years, 7 months ago (2014-05-27 21:09:36 UTC) #11
no sievers
+Ted for ui/base/android OWNERS
6 years, 7 months ago (2014-05-27 21:19:56 UTC) #12
Ted C
lgtm - owners ui/base/android https://codereview.chromium.org/285373008/diff/110009/ui/base/android/window_android_observer.h File ui/base/android/window_android_observer.h (right): https://codereview.chromium.org/285373008/diff/110009/ui/base/android/window_android_observer.h#newcode20 ui/base/android/window_android_observer.h:20: virtual void OnAnimate(base::TimeTicks frame_begin_time) {} ...
6 years, 7 months ago (2014-05-27 21:33:19 UTC) #13
no sievers
On 2014/05/27 21:33:19, Ted C wrote: > lgtm - owners ui/base/android > > https://codereview.chromium.org/285373008/diff/110009/ui/base/android/window_android_observer.h > ...
6 years, 7 months ago (2014-05-27 21:35:04 UTC) #14
no sievers
The CQ bit was unchecked by sievers@chromium.org
6 years, 7 months ago (2014-05-27 22:41:16 UTC) #15
no sievers
The CQ bit was checked by sievers@chromium.org
6 years, 7 months ago (2014-05-27 22:41:17 UTC) #16
no sievers
The CQ bit was unchecked by sievers@chromium.org
6 years, 7 months ago (2014-05-27 22:41:20 UTC) #17
no sievers
The CQ bit was checked by sievers@chromium.org
6 years, 7 months ago (2014-05-27 22:41:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/285373008/110009
6 years, 7 months ago (2014-05-27 22:43:21 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 22:45:42 UTC) #20
Message was sent while issue was closed.
Change committed as 273062

Powered by Google App Engine
This is Rietveld 408576698