summaryrefslogtreecommitdiffstats
path: root/cc/animation/animation.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert 245663 "Revert 245645 "Define WebScrollOffsetAnimationCur..."dbeam@chromium.org2014-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Revert 245645 "Define WebScrollOffsetAnimationCurveImpl" > > Broke compositor_unittests on Linux Aura Tests with error: I'm a dirty liar. > > LayerWithRealCompositorTest.DrawPixels (run #1): > [ RUN ] LayerWithRealCompositorTest.DrawPixels > ../../ui/compositor/layer_unittest.cc:832: Failure > Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) > Actual: false > Expected: true > [ FAILED ] LayerWithRealCompositorTest.DrawPixels (246 ms) > > LayerWithRealCompositorTest.DrawPixels (run #2): > [ RUN ] LayerWithRealCompositorTest.DrawPixels > ../../ui/compositor/layer_unittest.cc:832: Failure > Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) > Actual: false > Expected: true > [ FAILED ] LayerWithRealCompositorTest.DrawPixels (272 ms) > > LayerWithRealCompositorTest.DrawPixels (run #3): > [ RUN ] LayerWithRealCompositorTest.DrawPixels > ../../ui/compositor/layer_unittest.cc:832: Failure > Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) > Actual: false > Expected: true > [ FAILED ] LayerWithRealCompositorTest.DrawPixels (259 ms) > > LayerWithRealCompositorTest.DrawPixels (run #4): > [ RUN ] LayerWithRealCompositorTest.DrawPixels > ../../ui/compositor/layer_unittest.cc:832: Failure > Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) > Actual: false > Expected: true > [ FAILED ] LayerWithRealCompositorTest.DrawPixels (229 ms) > > > Define WebScrollOffsetAnimationCurveImpl > > > > This defines WebScrollOffsetAnimationCurveImpl, which wraps a > > cc::ScrollOffsetAnimationCurve. This is needed for > > implementing the CSSOM Smooth Scroll API. > > > > BUG=243871 > > > > Review URL: https://codereview.chromium.org/112933005 > > TBR=ajuma@chromium.org > > Review URL: https://codereview.chromium.org/141753007 TBR=dbeam@chromium.org Review URL: https://codereview.chromium.org/141953013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245674 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 245645 "Define WebScrollOffsetAnimationCurveImpl"dbeam@chromium.org2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke compositor_unittests on Linux Aura Tests with error: LayerWithRealCompositorTest.DrawPixels (run #1): [ RUN ] LayerWithRealCompositorTest.DrawPixels ../../ui/compositor/layer_unittest.cc:832: Failure Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) Actual: false Expected: true [ FAILED ] LayerWithRealCompositorTest.DrawPixels (246 ms) LayerWithRealCompositorTest.DrawPixels (run #2): [ RUN ] LayerWithRealCompositorTest.DrawPixels ../../ui/compositor/layer_unittest.cc:832: Failure Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) Actual: false Expected: true [ FAILED ] LayerWithRealCompositorTest.DrawPixels (272 ms) LayerWithRealCompositorTest.DrawPixels (run #3): [ RUN ] LayerWithRealCompositorTest.DrawPixels ../../ui/compositor/layer_unittest.cc:832: Failure Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) Actual: false Expected: true [ FAILED ] LayerWithRealCompositorTest.DrawPixels (259 ms) LayerWithRealCompositorTest.DrawPixels (run #4): [ RUN ] LayerWithRealCompositorTest.DrawPixels ../../ui/compositor/layer_unittest.cc:832: Failure Value of: ReadPixels(&bitmap, gfx::Rect(viewport_size)) Actual: false Expected: true [ FAILED ] LayerWithRealCompositorTest.DrawPixels (229 ms) > Define WebScrollOffsetAnimationCurveImpl > > This defines WebScrollOffsetAnimationCurveImpl, which wraps a > cc::ScrollOffsetAnimationCurve. This is needed for > implementing the CSSOM Smooth Scroll API. > > BUG=243871 > > Review URL: https://codereview.chromium.org/112933005 TBR=ajuma@chromium.org Review URL: https://codereview.chromium.org/141753007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245663 0039d316-1c4b-4281-b951-d872f2087c98
* Define WebScrollOffsetAnimationCurveImplajuma@chromium.org2014-01-171-1/+1
| | | | | | | | | | | | This defines WebScrollOffsetAnimationCurveImpl, which wraps a cc::ScrollOffsetAnimationCurve. This is needed for implementing the CSSOM Smooth Scroll API. BUG=243871 Review URL: https://codereview.chromium.org/112933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245645 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Support animating scroll offsetajuma@chromium.org2013-12-031-0/+1
| | | | | | | | | | | This makes cc::LayerAnimationController support animating scroll offset. This is needed for implementing the CSSOM View smooth scroll API. BUG=243871 Review URL: https://codereview.chromium.org/95763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238271 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused cc::Animation RunStatesajuma@chromium.org2013-11-211-14/+9
| | | | | | | | | | | | This removes cc::Animation::WaitingForNextTick and cc::Animation::WaitingForStartTime. These run states are not currently used. BUG=None Review URL: https://codereview.chromium.org/77283004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236427 0039d316-1c4b-4281-b951-d872f2087c98
* Add Color animation curves.avallee@chromium.org2013-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Implement animation curves for colors. This is the first step towards accelerating background-color animations. + Add ColorValueBetween to gfx::Tween. + Add test/color_utils which gives EXPECT_COLOR_EQ to check SkColors and print in a sane format. ~ Fixed discrepancy between two methods of interpolating ints. ~ Factored out GetProgress into template function to simplify code in the implementations of GetValue(double), there was a lot of duplication there. TESTED: Added tests for the new KeyframedColorAnimations and AnimatedColor classes. Added tests to tweening. R=ajuma BUG=290234 Review URL: https://codereview.chromium.org/25901002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230856 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Animation::InstanceType.dongseong.hwang@intel.com2013-10-181-8/+2
| | | | | | | | | | | A cloned Animation instance is always controlling instance, so Animation::InstanceType enum is useless. BUG=290217 Review URL: https://codereview.chromium.org/26205006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229287 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Support animating filtersajuma@chromium.org2013-10-031-0/+1
| | | | | | | | | | | | This adds a new Animation::TargetProperty for filters, and updates LayerAnimationController to support this new target. BUG=181613 Review URL: https://codereview.chromium.org/25311003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226766 0039d316-1c4b-4281-b951-d872f2087c98
* LayerTreeHost::SetAnimationEvents should use AnimationRegistrarajuma@chromium.org2013-04-081-0/+10
| | | | | | | | | | | | | | | This makes LayerTreeHost::SetAnimationEvents iterate over all active animation controllers registered with its AnimationRegistrar instead of iterating over the layer tree. This allows us to properly deliver animation events to a layer that has been temporarily removed from the layer tree when SetAnimationEvents is called. BUG=196284 Review URL: https://chromiumcodereview.appspot.com/13465014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192835 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix capitalization style in chromified files.danakj@chromium.org2013-03-251-2/+2
| | | | | | | | | | | | | | | | | Style-only change. Many already-chromified files missed a variable or function name here and there. This grabs (hopefully) all of them. For the record, I found these with: git gs '[^a-zA-Z0-9_>\."][a-jl-z]\+[A-Z][A-Za-z0-9_]*\($\|[ !=;,\.^&*)"]\)' R=enne BUG= Review URL: https://chromiumcodereview.appspot.com/12676029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190326 0039d316-1c4b-4281-b951-d872f2087c98
* Part 3 of cc/ directory shuffles: animationjamesr@chromium.org2013-03-181-0/+190
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 BUG=190824 TBR=enne@chromium.org, vollick@chromium.org Review URL: https://codereview.chromium.org/12822004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188688 0039d316-1c4b-4281-b951-d872f2087c98