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

Issue 2421913002: Change Aura overlay scrollbars from solid color to painted scrollbars. (Closed)

Created:
4 years, 2 months ago by bokan
Modified:
4 years, 2 months ago
CC:
aelias_OOO_until_Jul13, blink-reviews, chaopeng, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change Aura overlay scrollbars from solid color to painted scrollbars. With this change, the Aura overlay scrollbars are now painted by the native theme. If the scroller is composited, these scrollbars will now be uploaded to the compositor as PaintedScrollbarLayers rather than SolidColorScrollbarLayers. Additionally, many of the MD scrollbar constants and properties are scattered around the code. This patch moves them into a single location in ui/native_theme. I've also updated the values to match the latest spec. Follow-up patches will make use of these values from the compositor. BUG=592098, 652520 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/3d914bde3081131a655b467c1a7a232c7c065007 Cr-Commit-Position: refs/heads/master@{#426191}

Patch Set 1 #

Patch Set 2 : Move ad-hoc MD scrollbar constants into central location. #

Patch Set 3 : Move ad-hoc MD scrollbar constants into central location. #

Patch Set 4 : Move ad-hoc MD scrollbar constants into central location. #

Total comments: 21

Patch Set 5 : Rebase #

Patch Set 6 : Address pkasting@'s feedback #

Total comments: 9

Patch Set 7 : Few more fixes for pkasting@ #

Total comments: 2

Patch Set 8 : Added tracing for paint and removed NOTREACHED for non-overlay case #

Total comments: 2

Patch Set 9 : Added TODO for when Views code asks for part sizes #

Patch Set 10 : Fixing jbroman's and wez's nits #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -75 lines) Patch
M blimp/client/support/compositor/blimp_layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -6 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 1 chunk +5 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +18 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -2 lines 0 comments Download
M ui/native_theme/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/native_theme/native_theme_aura.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +64 lines, -28 lines 0 comments Download
M ui/native_theme/native_theme_base.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
A ui/native_theme/overlay_scrollbar_constants_aura.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (27 generated)
bokan
Hi Peter, are you the right person to look at this (at least the NativeTheme ...
4 years, 2 months ago (2016-10-14 19:24:49 UTC) #7
Peter Kasting
https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/material_design_constants.h File ui/native_theme/material_design_constants.h (right): https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/material_design_constants.h#newcode6 ui/native_theme/material_design_constants.h:6: #define UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ You've named this file like it's a ...
4 years, 2 months ago (2016-10-17 19:10:25 UTC) #8
bokan
PTAL. https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/material_design_constants.h File ui/native_theme/material_design_constants.h (right): https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/material_design_constants.h#newcode6 ui/native_theme/material_design_constants.h:6: #define UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ On 2016/10/17 19:10:24, Peter Kasting wrote: ...
4 years, 2 months ago (2016-10-17 23:21:04 UTC) #9
Peter Kasting
LGTM https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc#newcode37 ui/native_theme/native_theme_aura.cc:37: const SkColor kOverlayScrollbarThumbColor = SkColorSetRGB(0x0, 0x0, 0x0); Nit: ...
4 years, 2 months ago (2016-10-18 00:43:37 UTC) #12
bokan
https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc#newcode37 ui/native_theme/native_theme_aura.cc:37: const SkColor kOverlayScrollbarThumbColor = SkColorSetRGB(0x0, 0x0, 0x0); On 2016/10/18 ...
4 years, 2 months ago (2016-10-18 20:34:49 UTC) #15
bokan
+wez@ for blimp +jbroman@ for Source/platform +aelias@ for cc
4 years, 2 months ago (2016-10-18 20:36:33 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2421913002/diff/100001/ui/native_theme/native_theme_aura.cc#newcode213 ui/native_theme/native_theme_aura.cc:213: canvas->drawRect(gfx::RectFToSkRect(stroke_rect), paint); As I mentioned on http://crbug.com/304869#c36, I think ...
4 years, 2 months ago (2016-10-18 20:37:00 UTC) #19
jbroman
platform lgtm with nit https://codereview.chromium.org/2421913002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp (right): https://codereview.chromium.org/2421913002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp#newcode133 third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp:133: int thickness = Platform::current() nit: ...
4 years, 2 months ago (2016-10-18 20:39:26 UTC) #21
aelias_OOO_until_Jul13
OK, our messages crossed. bokan@ made a good point in http://crbug.com/304869#c38 about LCD text forcing ...
4 years, 2 months ago (2016-10-18 20:45:12 UTC) #23
bokan
sgtm, thanks. +wez@ again for blimp
4 years, 2 months ago (2016-10-18 20:51:47 UTC) #25
bokan
https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2421913002/diff/60001/ui/native_theme/native_theme_aura.cc#newcode277 ui/native_theme/native_theme_aura.cc:277: NOTREACHED(); On 2016/10/17 19:10:25, Peter Kasting wrote: > Is ...
4 years, 2 months ago (2016-10-18 21:39:48 UTC) #27
Wez
blimp/ LGTM https://codereview.chromium.org/2421913002/diff/140001/blimp/client/support/compositor/blimp_layer_tree_settings.cc File blimp/client/support/compositor/blimp_layer_tree_settings.cc (right): https://codereview.chromium.org/2421913002/diff/140001/blimp/client/support/compositor/blimp_layer_tree_settings.cc#newcode66 blimp/client/support/compositor/blimp_layer_tree_settings.cc:66: base::TimeDelta::FromMilliseconds(2000); nit: FromSeconds(2)
4 years, 2 months ago (2016-10-18 21:41:51 UTC) #28
bokan
https://codereview.chromium.org/2421913002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp (right): https://codereview.chromium.org/2421913002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp#newcode133 third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp:133: int thickness = Platform::current() On 2016/10/18 20:39:26, jbroman wrote: ...
4 years, 2 months ago (2016-10-18 21:59:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2421913002/200001
4 years, 2 months ago (2016-10-18 22:37:31 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/314186)
4 years, 2 months ago (2016-10-19 01:38:21 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2421913002/200001
4 years, 2 months ago (2016-10-19 02:16:11 UTC) #36
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-19 03:22:38 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2421913002/200001
4 years, 2 months ago (2016-10-19 10:31:27 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/315226)
4 years, 2 months ago (2016-10-19 10:40:48 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2421913002/220001
4 years, 2 months ago (2016-10-19 12:45:30 UTC) #45
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-10-19 15:08:24 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:08:25 UTC) #49
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3d914bde3081131a655b467c1a7a232c7c065007
Cr-Commit-Position: refs/heads/master@{#426191}

Powered by Google App Engine
This is Rietveld 408576698