Reviewers: fabbott,

Description:
Resubmitting r9970 again (again) - updating Animation to use the native
requestAnimationFrame, which generally results in optimal performance
versus using timer based animations. I did away with the soft
permutation in this version.  Basing the impl on user agent leads to a
smaller code footprint versus a soft perm because a soft perm includes
all implementations, whereas we now only include the native and timer
backup implementations in any permutation.

After seeing some of the demos at Google IO, I'm excited about the
awesomeness and simplicity of requestAnimationFrame, even beyond the
Animation class.  Animation carries the implicit restriction that it
must execute over a fixed amount of time, so it can't be used for
something like a game or unbounded animation. So, I've modified
tbroyer's patch and added static methods
Animation.requestAnimationFrame(Callback,Element)/cancelAnimationFrame().
 These are alternatives to using a Timer or a Scheduler, and the
Animation class makes use these static methods.

Author: tbroyer,jlabanca


Please review this at http://gwt-code-reviews.appspot.com/1446812/

Affected files:
  M user/src/com/google/gwt/animation/Animation.gwt.xml
  M user/src/com/google/gwt/animation/client/Animation.java
  A user/src/com/google/gwt/animation/client/AnimationImpl.java
  A user/src/com/google/gwt/animation/client/AnimationImplMozilla.java
  A user/src/com/google/gwt/animation/client/AnimationImplTimer.java
  A user/src/com/google/gwt/animation/client/AnimationImplWebkit.java
  M user/src/com/google/gwt/core/client/Scheduler.java
  M user/src/com/google/gwt/layout/client/Layout.java
  M user/src/com/google/gwt/user/cellview/client/CellBrowser.java
  M user/src/com/google/gwt/user/client/Timer.java
  M user/src/com/google/gwt/user/client/ui/DeckPanel.java
  M user/test/com/google/gwt/animation/client/AnimationTest.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to