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

Issue 2692243005: Merge Compositor's ScrollbarAnimationControllers into single class (Closed)

Created:
3 years, 10 months ago by chaopeng
Modified:
3 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge Compositor's ScrollbarAnimationControllers into single class This patch is for merge ScrollbarAnimationControllerLinearFade and ScrollbarAnimationControllerThinning into ScrollbarAnimationController. BUG=656606 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2692243005 Cr-Commit-Position: refs/heads/master@{#451397} Committed: https://chromium.googlesource.com/chromium/src/+/59e6fc09543e4cb2aa20e1869130a51bff279bae

Patch Set 1 #

Total comments: 7

Patch Set 2 : weiliangc comment addressed #

Total comments: 2

Patch Set 3 : make need thinning constant #

Patch Set 4 : rebase #

Patch Set 5 : fix confict constant #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+807 lines, -2005 lines) Patch
M cc/BUILD.gn View 2 chunks +1 line, -6 lines 0 comments Download
M cc/input/scrollbar_animation_controller.h View 1 2 3 chunks +57 lines, -33 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 9 chunks +159 lines, -55 lines 0 comments Download
D cc/input/scrollbar_animation_controller_linear_fade.h View 1 chunk +0 lines, -52 lines 0 comments Download
D cc/input/scrollbar_animation_controller_linear_fade.cc View 1 chunk +0 lines, -80 lines 0 comments Download
D cc/input/scrollbar_animation_controller_linear_fade_unittest.cc View 1 chunk +0 lines, -505 lines 0 comments Download
D cc/input/scrollbar_animation_controller_thinning.h View 1 chunk +0 lines, -65 lines 0 comments Download
D cc/input/scrollbar_animation_controller_thinning.cc View 1 chunk +0 lines, -128 lines 0 comments Download
D cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 chunk +0 lines, -976 lines 0 comments Download
A + cc/input/scrollbar_animation_controller_unittest.cc View 1 28 chunks +521 lines, -34 lines 0 comments Download
M cc/input/single_scrollbar_animation_controller_thinning.h View 1 3 chunks +3 lines, -5 lines 0 comments Download
M cc/input/single_scrollbar_animation_controller_thinning.cc View 1 3 chunks +1 line, -8 lines 0 comments Download
M cc/input/single_scrollbar_animation_controller_thinning_unittest.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 12 chunks +43 lines, -38 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 2 chunks +10 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 3 comments Download

Messages

Total messages: 36 (23 generated)
chaopeng
PTAL. Thank you.
3 years, 10 months ago (2017-02-14 18:29:43 UTC) #5
weiliangc
Probably bikeshedding, but do you think would it be better to change the names of ...
3 years, 10 months ago (2017-02-15 19:41:15 UTC) #8
chaopeng
https://codereview.chromium.org/2692243005/diff/1/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2692243005/diff/1/cc/input/scrollbar_animation_controller.cc#newcode277 cc/input/scrollbar_animation_controller.cc:277: void ScrollbarAnimationController::set_mouse_move_distance_for_test( On 2017/02/15 19:41:15, weiliangc wrote: > Since ...
3 years, 10 months ago (2017-02-15 19:59:50 UTC) #9
weiliangc
https://codereview.chromium.org/2692243005/diff/1/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2692243005/diff/1/cc/input/scrollbar_animation_controller.cc#newcode277 cc/input/scrollbar_animation_controller.cc:277: void ScrollbarAnimationController::set_mouse_move_distance_for_test( On 2017/02/15 at 19:59:50, chaopeng wrote: > ...
3 years, 10 months ago (2017-02-15 20:06:08 UTC) #10
chaopeng
Updated, PTAL.
3 years, 10 months ago (2017-02-16 21:07:10 UTC) #11
weiliangc
LGTM w/ nit. https://codereview.chromium.org/2692243005/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (left): https://codereview.chromium.org/2692243005/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#oldcode3216 cc/trees/layer_tree_host_impl_unittest.cc:3216: EXPECT_TRUE( Is this test case not ...
3 years, 10 months ago (2017-02-17 00:29:55 UTC) #22
chaopeng
https://codereview.chromium.org/2692243005/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (left): https://codereview.chromium.org/2692243005/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#oldcode3216 cc/trees/layer_tree_host_impl_unittest.cc:3216: EXPECT_TRUE( On 2017/02/17 00:29:54, weiliangc wrote: > Is this ...
3 years, 10 months ago (2017-02-17 00:36:07 UTC) #23
chaopeng
nick@chromium.org: Please review changes in content. Thank you.
3 years, 10 months ago (2017-02-17 00:39:45 UTC) #25
ncarter (slow)
https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/render_widget_compositor.cc#newcode441 content/renderer/gpu/render_widget_compositor.cc:441: settings.scrollbar_animator = cc::LayerTreeSettings::ANDROID_OVERLAY; As a result of the renaming, ...
3 years, 10 months ago (2017-02-17 20:47:17 UTC) #28
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/2692243005/80001
3 years, 10 months ago (2017-02-17 21:33:53 UTC) #30
chaopeng
https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/render_widget_compositor.cc#newcode441 content/renderer/gpu/render_widget_compositor.cc:441: settings.scrollbar_animator = cc::LayerTreeSettings::ANDROID_OVERLAY; On 2017/02/17 20:47:17, ncarter wrote: > ...
3 years, 10 months ago (2017-02-17 21:35:58 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/59e6fc09543e4cb2aa20e1869130a51bff279bae
3 years, 10 months ago (2017-02-17 23:37:39 UTC) #34
bokan
3 years, 10 months ago (2017-02-21 15:49:56 UTC) #36
Message was sent while issue was closed.
https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/re...
File content/renderer/gpu/render_widget_compositor.cc (right):

https://codereview.chromium.org/2692243005/diff/80001/content/renderer/gpu/re...
content/renderer/gpu/render_widget_compositor.cc:441:
settings.scrollbar_animator = cc::LayerTreeSettings::ANDROID_OVERLAY;
On 2017/02/17 21:35:58, chaopeng wrote:
> On 2017/02/17 20:47:17, ncarter wrote:
> > As a result of the renaming, this looks weirder than before, because we're
> using
> > an ANDROID_ constant inside a !defined(OS_ANDROID) #ifdef context.
> > 
> > I don't particularly mind either style of name, but as someone who isn't
> > familiar with this code, I found it much easier to understand the original
> > THINNING/LINEAR_FADE names.
> > 
> > lgtm because I don't want to bikeshed, but maybe you could add comments to
the
> > enum declarations like: // Android-style linear fade animation ?
> 
> We have a plan to fix Mac scrollbar and this TODO soon. 

This is already for non-Mac. I think we could just remove this section without
breaking anything. Could you put up a patch?

Powered by Google App Engine
This is Rietveld 408576698