summaryrefslogtreecommitdiffstats
path: root/cc/animation/transform_operations.h
Commit message (Collapse)AuthorAgeFilesLines
* Blink Compositor: Erase virtuals on Transform and Filter operations.loyso2016-02-181-0/+8
| | | | | | | | | BUG=577016 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1698213002 Cr-Commit-Position: refs/heads/master@{#376085}
* Switch to standard integer types in cc/.avi2015-12-211-0/+1
| | | | | | | | | | BUG=138542 TBR=danakj@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1539203002 Cr-Commit-Position: refs/heads/master@{#366333}
* Move RenderSurface creation outside of CalcDrawPropsawoloszyn2014-12-221-0/+3
| | | | | | | | BUG=386788 Review URL: https://codereview.chromium.org/465853004 Cr-Commit-Position: refs/heads/master@{#309428}
* cc: Make PictureLayerImpl use a better choice for animated raster scale.danakj2014-10-101-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Two changes here: 1. When finding the max scale of an animation, only consider the scales at each of the animations keyframes excluding the animations origin. This is done because the origin is not an interesting scale to use, we are animating away from it. And in the case of a layer at a high scale, we are unable to raster all of its content at that scale. It would be better to use the scale at the end of the transform since that is what we will want to raster eventually. 2. When PictureLayerImpl chooses to use the animation scale: a) Always allow using it if the scale is less than the current raster scale choice. It can only put us in a better position memory-wise. b) Don't use the max() with the current raster scale choice, that means we will never use the animation scale if it is zooming out, which is not what we want. This would also mean we choose a new raster scale on every frame, which is bad. Just use the scale of the animation straight up, and if it's not known, use a source scale of 1. R=ajuma, vmpstr BUG=421812 Review URL: https://codereview.chromium.org/642983003 Cr-Commit-Position: refs/heads/master@{#299162}
* cc: Compute the maximum scale of animationsajuma@chromium.org2014-04-031-0/+16
| | | | | | | | | | | This adds MaximumScale and HasOnlyTranslationTransforms methods to LayerAnimationController. BUG=224913 Review URL: https://codereview.chromium.org/214003004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261583 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Identify animations that affect scaleajuma@chromium.org2014-03-311-0/+3
| | | | | | | | | | | This adds a HasAnimationThatAffectsScale method to LayerAnimationController. BUG=224913 Review URL: https://codereview.chromium.org/213493004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260559 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Use SkMScalar instead of doubles for transforms in ccenne@chromium.org2013-09-121-9/+11
| | | | | | | | BUG=269819 Review URL: https://chromiumcodereview.appspot.com/23043011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222683 0039d316-1c4b-4281-b951-d872f2087c98
* Compute bounds of animated layersajuma@chromium.org2013-08-151-0/+11
| | | | | | | | | | | | | This adds support for computing the bounds of a box when transformed by the animations currently running on layer. This CL handles Scale and Translate animations, leaving other TransformOperations for future CLs. BUG=252472 Review URL: https://chromiumcodereview.appspot.com/21604002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217845 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate.danakj@chromium.org2013-03-271-0/+2
| | | | | | | | | | | Also DISALLOW_IMPLICIT_CONSTRUCTORS in a few places instead. NOTRY=true R=jamesr Review URL: https://chromiumcodereview.appspot.com/13065006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190989 0039d316-1c4b-4281-b951-d872f2087c98
* Part 11 of cc/ directory shuffles: fix up stragglersjamesr@chromium.org2013-03-181-0/+81
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 This moves files left behind in previous patches and completes the series. BUG=190824 TBR=enne@chromium.org Review URL: https://codereview.chromium.org/12916002 Review URL: https://codereview.chromium.org/12604010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188707 0039d316-1c4b-4281-b951-d872f2087c98