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

Issue 226283004: Rasterize at maximum scale for scale animations on CPU-rasterized layers (Closed)

Created:
6 years, 8 months ago by ajuma
Modified:
6 years, 8 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Rasterize at maximum scale for scale animations on CPU-rasterized layers This re-rasterizes CPU-rasterized layers animating scale at the maximum scale that will be applied during the animation, if this maximum scale can be computed. BUG=224913 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262737

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Address review comments #

Patch Set 3 : Fix android build #

Total comments: 6

Patch Set 4 : Rebased #

Patch Set 5 : Address review comments #

Total comments: 8

Patch Set 6 : Rename maximum_animation_scale_factor to maximum_animation_contents_scale #

Total comments: 2

Patch Set 7 : Change scale factors in test #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+744 lines, -154 lines) Patch
M cc/layers/contents_scaling_layer.h View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M cc/layers/contents_scaling_layer.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/image_layer.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/image_layer.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/picture_image_layer_impl.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/picture_image_layer_impl.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M cc/layers/picture_image_layer_impl_unittest.cc View 1 2 3 4 5 5 chunks +17 lines, -4 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 7 chunks +21 lines, -9 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 52 chunks +287 lines, -101 lines 0 comments Download
M cc/test/animation_test_common.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M cc/test/tiled_layer_test_common.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 11 chunks +127 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 7 chunks +226 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/android/edge_effect.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
ajuma
6 years, 8 months ago (2014-04-04 23:50:33 UTC) #1
Ian Vollick
The plumbing looks good (and heroic!), but I have a just a few comments on ...
6 years, 8 months ago (2014-04-05 02:24:33 UTC) #2
ajuma
https://codereview.chromium.org/226283004/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/40001/cc/layers/picture_layer_impl.cc#newcode1086 cc/layers/picture_layer_impl.cc:1086: maximum_animation_scale_factor * ideal_contents_scale_); On 2014/04/05 02:24:33, Ian Vollick wrote: ...
6 years, 8 months ago (2014-04-07 15:26:59 UTC) #3
Ian Vollick
lgtm https://codereview.chromium.org/226283004/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/40001/cc/layers/picture_layer_impl.cc#newcode1086 cc/layers/picture_layer_impl.cc:1086: maximum_animation_scale_factor * ideal_contents_scale_); On 2014/04/07 15:27:00, ajuma wrote: ...
6 years, 8 months ago (2014-04-07 16:31:32 UTC) #4
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 8 months ago (2014-04-07 16:53:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/226283004/60001
6 years, 8 months ago (2014-04-07 16:53:12 UTC) #6
ajuma
The CQ bit was unchecked by ajuma@chromium.org
6 years, 8 months ago (2014-04-07 17:01:43 UTC) #7
Ian Vollick
On 2014/04/07 17:01:43, ajuma wrote: > The CQ bit was unchecked by mailto:ajuma@chromium.org +enne for ...
6 years, 8 months ago (2014-04-07 17:16:35 UTC) #8
enne (OOO)
https://codereview.chromium.org/226283004/diff/80001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/226283004/diff/80001/cc/trees/layer_tree_host_common.cc#newcode1018 cc/trees/layer_tree_host_common.cc:1018: static inline void CalculateAnimationScaleFactor( Can you template this to ...
6 years, 8 months ago (2014-04-08 14:19:40 UTC) #9
ajuma
PTAL. https://codereview.chromium.org/226283004/diff/80001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/226283004/diff/80001/cc/trees/layer_tree_host_common.cc#newcode1018 cc/trees/layer_tree_host_common.cc:1018: static inline void CalculateAnimationScaleFactor( On 2014/04/08 14:19:41, enne ...
6 years, 8 months ago (2014-04-08 18:59:16 UTC) #10
enne (OOO)
https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc#newcode1085 cc/layers/picture_layer_impl.cc:1085: std::max(raster_contents_scale_, maximum_animation_scale_factor); Maybe I'm missing something, but this seems ...
6 years, 8 months ago (2014-04-08 19:18:47 UTC) #11
ajuma
https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc#newcode1085 cc/layers/picture_layer_impl.cc:1085: std::max(raster_contents_scale_, maximum_animation_scale_factor); On 2014/04/08 19:18:47, enne wrote: > Maybe ...
6 years, 8 months ago (2014-04-08 19:48:09 UTC) #12
enne (OOO)
https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc#newcode1063 cc/layers/picture_layer_impl.cc:1063: raster_contents_scale_ = ideal_contents_scale_; This looks wrong, to be honest. ...
6 years, 8 months ago (2014-04-08 19:53:19 UTC) #13
enne (OOO)
Nevermind, ignore me. I think I am just confused by raster_source_scale vs. raster_contents_scale. Sorry for ...
6 years, 8 months ago (2014-04-08 19:57:05 UTC) #14
ajuma
PTAL. https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/226283004/diff/130001/cc/layers/picture_layer_impl.cc#newcode1085 cc/layers/picture_layer_impl.cc:1085: std::max(raster_contents_scale_, maximum_animation_scale_factor); On 2014/04/08 19:18:47, enne wrote: > ...
6 years, 8 months ago (2014-04-08 20:30:39 UTC) #15
enne (OOO)
lgtm. Thanks for the additional comment, and sorry about my confusion. https://codereview.chromium.org/226283004/diff/150001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): ...
6 years, 8 months ago (2014-04-08 20:37:00 UTC) #16
ajuma
vollick, PTAL. https://codereview.chromium.org/226283004/diff/150001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/226283004/diff/150001/cc/layers/picture_layer_impl_unittest.cc#newcode1772 cc/layers/picture_layer_impl_unittest.cc:1772: float device_scale = 1.f; On 2014/04/08 20:37:01, ...
6 years, 8 months ago (2014-04-08 20:54:55 UTC) #17
Ian Vollick
On 2014/04/08 20:54:55, ajuma wrote: > vollick, PTAL. > > https://codereview.chromium.org/226283004/diff/150001/cc/layers/picture_layer_impl_unittest.cc > File cc/layers/picture_layer_impl_unittest.cc (right): ...
6 years, 8 months ago (2014-04-09 03:24:23 UTC) #18
ajuma
+skyostil for content/browser/android/edge_effect.cc
6 years, 8 months ago (2014-04-09 13:04:07 UTC) #19
Sami
content/browser/android/edge_effect.cc lgtm.
6 years, 8 months ago (2014-04-09 16:31:31 UTC) #20
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 8 months ago (2014-04-09 16:40:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/226283004/180001
6 years, 8 months ago (2014-04-09 16:41:58 UTC) #22
commit-bot: I haz the power
6 years, 8 months ago (2014-04-09 17:49:27 UTC) #23
Message was sent while issue was closed.
Change committed as 262737

Powered by Google App Engine
This is Rietveld 408576698