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

Issue 11090062: cc: Rewrite PageScaleAnimation for new coordinate system. (Closed)

Created:
8 years, 2 months ago by aelias_OOO_until_Jul13
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, wjmaclean
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Rewrite PageScaleAnimation for new coordinate system. - I moved PageScaleAnimation to work entirely at root content layer scale, to be consistent with the new pinch zoom code. This avoids the need for any scaling of scroll offsets. However, everything must now be in floating point, and the complexity is moved into viewport size calculation instead. - I also took the opportunity to add support for two anchors instead of just one, introducing an additional level of interpolation. This makes the animation appear less jarring when we clamp it to document edge, and it also removes the need for special-casing translation-only animations. BUG=152505 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166855

Patch Set 1 #

Patch Set 2 : Remove accidentally added debug code #

Patch Set 3 : Rebase to 165026 #

Patch Set 4 : Rebase to 166581 and move normalization logic to static methods #

Total comments: 14

Patch Set 5 : Address gfx::Size::Scale() currently not being mutating #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -171 lines) Patch
M cc/layer_tree_host_impl.h View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +32 lines, -24 lines 3 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 3 chunks +13 lines, -14 lines 0 comments Download
M cc/page_scale_animation.h View 1 2 3 3 chunks +40 lines, -30 lines 0 comments Download
M cc/page_scale_animation.cc View 1 2 3 4 4 chunks +159 lines, -102 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
aelias_OOO_until_Jul13
Here's the first of many changes to make Android's features consistent with the new pinch ...
8 years, 2 months ago (2012-10-10 23:34:33 UTC) #1
aelias_OOO_until_Jul13
Adding klobag@ to review the anchor stuff.
8 years, 2 months ago (2012-10-12 01:05:34 UTC) #2
klobag.chromium
On 2012/10/12 01:05:34, aelias wrote: > Adding klobag@ to review the anchor stuff. Sorry for ...
8 years, 1 month ago (2012-10-26 19:53:41 UTC) #3
aelias_OOO_until_Jul13
Rebased, PTAL.
8 years, 1 month ago (2012-10-30 22:34:20 UTC) #4
jamesr
lgtm, but Grace should review the anchor stuff
8 years, 1 month ago (2012-10-30 22:45:18 UTC) #5
aelias_OOO_until_Jul13
Rebased and cleaned up. trchen@ can review the math as he's started to work on ...
8 years, 1 month ago (2012-11-08 21:18:51 UTC) #6
trchen
On 2012/11/08 21:18:51, aelias wrote: > Rebased and cleaned up. trchen@ can review the math ...
8 years, 1 month ago (2012-11-09 00:56:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11090062/15006
8 years, 1 month ago (2012-11-09 02:30:39 UTC) #8
commit-bot: I haz the power
Change committed as 166855
8 years, 1 month ago (2012-11-09 04:46:58 UTC) #9
danakj
https://codereview.chromium.org/11090062/diff/13001/cc/page_scale_animation.cc File cc/page_scale_animation.cc (left): https://codereview.chromium.org/11090062/diff/13001/cc/page_scale_animation.cc#oldcode9 cc/page_scale_animation.cc:9: #include "cc/geometry.h" keep this. see below. https://codereview.chromium.org/11090062/diff/13001/cc/page_scale_animation.cc File cc/page_scale_animation.cc ...
8 years, 1 month ago (2012-11-09 05:06:49 UTC) #10
danakj
8 years, 1 month ago (2012-11-09 05:08:27 UTC) #11
https://codereview.chromium.org/11090062/diff/13001/cc/page_scale_animation.cc
File cc/page_scale_animation.cc (right):

https://codereview.chromium.org/11090062/diff/13001/cc/page_scale_animation.c...
cc/page_scale_animation.cc:135: gfx::Vector2dF normalized;
On 2012/11/09 05:06:49, danakj wrote:
> float widthScale = targetSize.width() - startSize.width();
> float heightScale = targetHeight.width() - startHeight.width();

I mean: 

float widthScale = targetSize.width() - startSize.width();
float heightScale = targetSize.height() - startSize.height();

Powered by Google App Engine
This is Rietveld 408576698