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

Issue 427103002: compositor: Add rAF-like functionality for the UI. (Closed)

Created:
6 years, 4 months ago by sadrul
Modified:
6 years, 4 months ago
Reviewers:
ajuma, piman
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

compositor: Add rAF-like functionality for the UI. Introduce CompositorAnimationObserver. An observer is called at every animation step in the compositor, until the observer is removed from the compositor's observer list. Update LayerAnimatorCollection to become a CompositorAnimationObserver, and use this task-based mechanism for driving the layer animations. BUG=398117 R=piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287011

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 3

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -36 lines) Patch
M ui/compositor/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 chunks +7 lines, -5 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 2 chunks +18 lines, -6 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A ui/compositor/compositor_animation_observer.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M ui/compositor/layer_animator_collection.h View 1 2 3 4 1 chunk +10 lines, -17 lines 0 comments Download
M ui/compositor/layer_animator_collection.cc View 1 2 3 4 3 chunks +12 lines, -7 lines 0 comments Download
M ui/compositor/layer_animator_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
sadrul
Hi! Does this look like a reasonable change? The motivation for this CL is to ...
6 years, 4 months ago (2014-07-31 01:02:18 UTC) #1
piman
https://codereview.chromium.org/427103002/diff/60001/ui/compositor/animation_frame_task.h File ui/compositor/animation_frame_task.h (right): https://codereview.chromium.org/427103002/diff/60001/ui/compositor/animation_frame_task.h#newcode55 ui/compositor/animation_frame_task.h:55: virtual scoped_ptr<ScopedAnimationFrameTask> RequestAnimationFrameTask( I would prefer if ScopedAnimationFrameTask was ...
6 years, 4 months ago (2014-07-31 01:17:03 UTC) #2
sadrul
I have changed to using an observer-list instead. I feel like it's easy to forget ...
6 years, 4 months ago (2014-07-31 23:48:13 UTC) #3
piman
On 2014/07/31 23:48:13, sadrul wrote: > I have changed to using an observer-list instead. > ...
6 years, 4 months ago (2014-08-01 01:34:46 UTC) #4
sadrul
6 years, 4 months ago (2014-08-01 16:04:44 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as 287011 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698