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

Issue 2918753002: Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar (Closed)

Created:
3 years, 6 months ago by chaopeng
Modified:
3 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar crbug.com/724507 is caused by my patch (crrev.com/b50f6446eb79c4aaaac0a5eefdf90d2b4a99ce54). I assigned `settings.scrollbar_animator = cc::LayerTreeSettings::ANDROID_OVERLAY` for default which we assigned `LayerTreeSettings::NO_ANIMATOR` before. Which can give mobile emulator correct settings but in LayerTreeImpl::RegisterScrollbar - LayerTreeHostImpl::RegisterScrollbarAnimationController we create ScrollbarAnimationController to handle scrollbar's opacity. In this patch, we add GetScrollbarAnimator to ScrollbarLayerImplBase and its subclasses. PaintedScrollbarLayerImpl::GetScrollbarAnimator can always returns NO_ANIMATOR because AuraOverlayScrollbar is using PaintedOverlayScrollbarLayerImpl, others can return based on LayerTreeSettings. Then we can prevent create ScrollbarAnimationController for Mac Overlay Scrollbar by checking scrollbar's animator. BUG=724507 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2918753002 Cr-Commit-Position: refs/heads/master@{#477287} Committed: https://chromium.googlesource.com/chromium/src/+/4795906652460b283e526e6745057d77f0133980

Patch Set 1 #

Patch Set 2 : Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar #

Total comments: 6

Patch Set 3 : fix without MACOSX macro #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M cc/layers/painted_scrollbar_layer_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
chaopeng
PTAL. Thank you.
3 years, 6 months ago (2017-06-01 02:54:58 UTC) #3
aelias_OOO_until_Jul13
Doesn't this regress Mac devtools? Can you look for a proper fix instead?
3 years, 6 months ago (2017-06-01 03:00:45 UTC) #4
chaopeng
On 2017/06/01 03:00:45, aelias wrote: > Doesn't this regress Mac devtools? Can you look for ...
3 years, 6 months ago (2017-06-01 03:47:51 UTC) #5
aelias_OOO_until_Jul13
I'd rather avoid the churn and the bug is only marked ReleaseBlock-Stable. Please update when ...
3 years, 6 months ago (2017-06-01 18:28:55 UTC) #6
chaopeng
PTAL. Thank you.
3 years, 6 months ago (2017-06-02 20:06:14 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/2918753002/diff/20001/cc/layers/scrollbar_layer_impl_base.h File cc/layers/scrollbar_layer_impl_base.h (right): https://codereview.chromium.org/2918753002/diff/20001/cc/layers/scrollbar_layer_impl_base.h#newcode64 cc/layers/scrollbar_layer_impl_base.h:64: virtual bool IsSolidColorScrollbarLayerImpl() const; How about instead making scrollbars ...
3 years, 6 months ago (2017-06-02 22:02:24 UTC) #11
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2918753002/diff/20001/cc/layers/scrollbar_layer_impl_base.h File cc/layers/scrollbar_layer_impl_base.h (right): https://codereview.chromium.org/2918753002/diff/20001/cc/layers/scrollbar_layer_impl_base.h#newcode64 cc/layers/scrollbar_layer_impl_base.h:64: virtual bool IsSolidColorScrollbarLayerImpl() const; On ...
3 years, 6 months ago (2017-06-05 14:52:40 UTC) #15
aelias_OOO_until_Jul13
lgtm. thanks!
3 years, 6 months ago (2017-06-06 02:26:11 UTC) #16
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/2918753002/40001
3 years, 6 months ago (2017-06-06 13:54:45 UTC) #18
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/2918753002/40001
3 years, 6 months ago (2017-06-06 14:51:53 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 15:06:58 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4795906652460b283e526e674505...

Powered by Google App Engine
This is Rietveld 408576698