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

Issue 1474853002: cc: Stop locking the raster scale factor at 1 after any change. (Closed)

Created:
5 years ago by danakj
Modified:
5 years ago
Reviewers:
vmpstr, enne (OOO)
CC:
cc-bugs_chromium.org, chrishtr, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Stop locking the raster scale factor at 1 after any change. Currently if the PictureLayerImpl's transform scale changes ever outside of a CSS animation, we lock the raster scale to 1 to prevent any re-raster work from happening. This leads to really inconsistent/buggy/unpredictable behaviour for web developers. Sometimes this only becomes visible after switching tabs and back, causing the old tiling to be evicted. This optimization was added when CSS animations were very new to the web, now they are more common and we should expect developers to use CSS animations if they want to change the scale of an element frequently as this provides the needed hints to the compositor about how to raster the content. We cargo-culted this into the impl-side painting implementation and tweaked it from there. This patch removes the hueristic entirely around fixing the raster scale, meaning that we'll always raster at the scale javascript provides on the layer. This eliminates many "things are blurry" problems from the web (see bugs 556533, 413636, 368201, and 542166 for some examples). R=enne, vmpstr BUG=556533 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/66978ff65abbb473f8662444c2dc0823e0f45795 Cr-Commit-Position: refs/heads/master@{#361551}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -86 lines) Patch
M cc/layers/picture_layer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 5 chunks +4 lines, -26 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 5 chunks +92 lines, -59 lines 4 comments Download

Messages

Total messages: 13 (3 generated)
danakj
5 years ago (2015-11-24 21:52:29 UTC) #1
enne (OOO)
https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode1182 cc/layers/picture_layer_impl_unittest.cc:1182: // with each of the 3 tilings mentioned here, ...
5 years ago (2015-11-24 22:05:30 UTC) #4
danakj
https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode1182 cc/layers/picture_layer_impl_unittest.cc:1182: // with each of the 3 tilings mentioned here, ...
5 years ago (2015-11-24 22:06:59 UTC) #5
vmpstr
lgtm % enne https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode1207 cc/layers/picture_layer_impl_unittest.cc:1207: active_layer_->tilings()->tiling_at(3)->contents_scale()); Out of curiosity, why is ...
5 years ago (2015-11-24 22:14:40 UTC) #6
danakj
https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1474853002/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode1207 cc/layers/picture_layer_impl_unittest.cc:1207: active_layer_->tilings()->tiling_at(3)->contents_scale()); On 2015/11/24 22:14:40, vmpstr wrote: > Out of ...
5 years ago (2015-11-24 22:16:20 UTC) #7
enne (OOO)
lgtm, thanks!
5 years ago (2015-11-24 22:25:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474853002/1
5 years ago (2015-11-24 22:27:43 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-25 03:25:12 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/66978ff65abbb473f8662444c2dc0823e0f45795 Cr-Commit-Position: refs/heads/master@{#361551}
5 years ago (2015-11-25 03:26:32 UTC) #12
danakj
4 years, 8 months ago (2016-04-19 23:38:00 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1894173004/ by danakj@chromium.org.

The reason for reverting is:
https://bugs.chromium.org/p/chromium/issues/detail?id=600482.

Powered by Google App Engine
This is Rietveld 408576698