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

Issue 913133004: cc: Make PaintedScrollbarLayer not use ContentsScalingLayer (Closed)

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

Description

cc: Make PaintedScrollbarLayer not use ContentsScalingLayer ContentsScalingLayer depends on the main thread running calculate draw properties and updating contents scale and content bounds. In order to switch to using property trees (which don't currently calculate these values), PaintedScrollbarLayer needs to calculate contents scale internally. This also moves towards removing ContentsScalingLayer (currently also used by TiledLayer and HeadsUpDisplayLayer), which once it's gone will allow contents scale and content bounds to removed entirely from Layer and LayerImpl. Committed: https://crrev.com/467829ba34bd4244b8415e35149e72ce81386ad6 Cr-Commit-Position: refs/heads/master@{#316137}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix thumb rects under device scale #

Total comments: 11

Patch Set 3 : danakj review #

Total comments: 5

Patch Set 4 : Add comment #

Patch Set 5 : Scale track opaque rect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -270 lines) Patch
M cc/layers/layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 1 2 5 chunks +14 lines, -8 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 2 9 chunks +45 lines, -26 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.cc View 1 2 3 4 4 chunks +25 lines, -31 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl_unittest.cc View 1 2 3 4 4 chunks +23 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 3 chunks +16 lines, -37 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 26 chunks +125 lines, -165 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_painted_scrollbar_layer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
enne (OOO)
https://codereview.chromium.org/913133004/diff/1/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/913133004/diff/1/cc/layers/painted_scrollbar_layer.cc#newcode203 cc/layers/painted_scrollbar_layer.cc:203: float scale = layer_tree_host()->device_scale_factor(); This is a change in ...
5 years, 10 months ago (2015-02-11 21:41:59 UTC) #2
enne (OOO)
I added another patch because it turned out I wasn't scaling the thumb rect by ...
5 years, 10 months ago (2015-02-11 23:04:22 UTC) #3
danakj
https://codereview.chromium.org/913133004/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/913133004/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode94 cc/layers/painted_scrollbar_layer.cc:94: gfx::ToCeiledSize(gfx::ScaleSize(bounds(), scale, scale)); nit: only need to pass scale ...
5 years, 10 months ago (2015-02-12 19:35:44 UTC) #4
enne (OOO)
https://codereview.chromium.org/913133004/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/913133004/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode94 cc/layers/painted_scrollbar_layer.cc:94: gfx::ToCeiledSize(gfx::ScaleSize(bounds(), scale, scale)); On 2015/02/12 19:35:43, danakj wrote: > ...
5 years, 10 months ago (2015-02-12 21:55:56 UTC) #5
danakj
LGTM https://codereview.chromium.org/913133004/diff/40001/cc/layers/painted_scrollbar_layer_impl.cc File cc/layers/painted_scrollbar_layer_impl.cc (right): https://codereview.chromium.org/913133004/diff/40001/cc/layers/painted_scrollbar_layer_impl.cc#newcode96 cc/layers/painted_scrollbar_layer_impl.cc:96: visible_thumb_quad_rect, internal_contents_scale_); Do you need to intersect with ...
5 years, 10 months ago (2015-02-12 22:18:05 UTC) #6
enne (OOO)
https://codereview.chromium.org/913133004/diff/40001/cc/layers/painted_scrollbar_layer_impl.cc File cc/layers/painted_scrollbar_layer_impl.cc (right): https://codereview.chromium.org/913133004/diff/40001/cc/layers/painted_scrollbar_layer_impl.cc#newcode96 cc/layers/painted_scrollbar_layer_impl.cc:96: visible_thumb_quad_rect, internal_contents_scale_); On 2015/02/12 22:18:04, danakj wrote: > Do ...
5 years, 10 months ago (2015-02-12 22:26:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913133004/60001
5 years, 10 months ago (2015-02-12 22:36:37 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-12 23:47:45 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/a499bbb66f29815ae0cef3eaa62ee2b3d3526d04 Cr-Commit-Position: refs/heads/master@{#316088}
5 years, 10 months ago (2015-02-12 23:48:36 UTC) #12
enne (OOO)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/913393004/ by enne@chromium.org. ...
5 years, 10 months ago (2015-02-12 23:55:26 UTC) #13
enne (OOO)
I used the wrong (unscaled) track rect when passing the opaque rect to the quad. ...
5 years, 10 months ago (2015-02-13 00:39:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913133004/80001
5 years, 10 months ago (2015-02-13 00:40:48 UTC) #16
danakj
Thanks LGTM
5 years, 10 months ago (2015-02-13 00:43:42 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-13 02:39:50 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 02:40:45 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/467829ba34bd4244b8415e35149e72ce81386ad6
Cr-Commit-Position: refs/heads/master@{#316137}

Powered by Google App Engine
This is Rietveld 408576698