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

Issue 14017008: Ensure that pinch-zoom scrollbar animations trigger a draw (Closed)

Created:
7 years, 8 months ago by ajuma
Modified:
7 years, 8 months ago
Reviewers:
danakj, wjmaclean
CC:
chromium-reviews, cc-bugs_chromium.org, Ian Vollick
Visibility:
Public.

Description

Ensure that pinch-zoom scrollbar animations trigger a draw Pinch-zoom scrollbar animations are impl-only animations that are added directly to an impl-side animation controller rather than pushed during a commit. If no draw is triggered when they are created, they can be left waiting indefinitely to get started. This CL adds calls to SetNeedsRedraw when these animations are created; once these animations are started, LayerTreeHostImpl::AnimateLayers already takes care of triggering additional draws. BUG=165842 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195068

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 10

Patch Set 3 : Prevent unnecessary commits #

Total comments: 7

Patch Set 4 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -2 lines) Patch
M cc/layers/scrollbar_layer.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 3 chunks +60 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
ajuma
7 years, 8 months ago (2013-04-17 18:40:50 UTC) #1
danakj
Can we has a test?
7 years, 8 months ago (2013-04-17 18:46:57 UTC) #2
ajuma
On 2013/04/17 18:46:57, danakj wrote: > Can we has a test? Done.
7 years, 8 months ago (2013-04-17 20:49:41 UTC) #3
danakj
LGTM with some comments for the test (thanks for it!) https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc#newcode784 ...
7 years, 8 months ago (2013-04-17 20:54:09 UTC) #4
wjmaclean
l gtm, with one minor nit. https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc#newcode785 cc/trees/layer_tree_host_unittest_animation.cc:785: layer_tree_host()->SetPageScaleFactorAndLimits(0.5, 0.5, 0.9); ...
7 years, 8 months ago (2013-04-17 20:56:54 UTC) #5
danakj
https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc#newcode785 cc/trees/layer_tree_host_unittest_animation.cc:785: layer_tree_host()->SetPageScaleFactorAndLimits(0.5, 0.5, 0.9); On 2013/04/17 20:56:54, wjmaclean wrote: > ...
7 years, 8 months ago (2013-04-17 21:01:03 UTC) #6
wjmaclean
On 2013/04/17 21:01:03, danakj wrote: > https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc > File cc/trees/layer_tree_host_unittest_animation.cc (right): > > https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc#newcode785 > ...
7 years, 8 months ago (2013-04-17 22:44:16 UTC) #7
danakj
On Wed, Apr 17, 2013 at 6:44 PM, <wjmaclean@chromium.org> wrote: > Based on my reading ...
7 years, 8 months ago (2013-04-17 22:57:34 UTC) #8
ajuma
On 2013/04/17 21:01:03, danakj wrote: > https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc > File cc/trees/layer_tree_host_unittest_animation.cc (right): > > https://codereview.chromium.org/14017008/diff/5002/cc/trees/layer_tree_host_unittest_animation.cc#newcode785 > ...
7 years, 8 months ago (2013-04-17 23:05:15 UTC) #9
danakj
On Wed, Apr 17, 2013 at 7:05 PM, <ajuma@chromium.org> wrote: > On 2013/04/17 21:01:03, danakj ...
7 years, 8 months ago (2013-04-17 23:08:50 UTC) #10
ajuma
On 2013/04/17 23:08:50, danakj wrote: > On Wed, Apr 17, 2013 at 7:05 PM, <mailto:ajuma@chromium.org> ...
7 years, 8 months ago (2013-04-18 00:16:26 UTC) #11
danakj
On Wed, Apr 17, 2013 at 8:16 PM, <ajuma@chromium.org> wrote: > Turns out we're getting ...
7 years, 8 months ago (2013-04-18 00:27:47 UTC) #12
ajuma
PTAL. The commit triggered by LayerTreeHost::CreateAndAddPinchZoomScrollbars is actually needed, since this creates new layers and ...
7 years, 8 months ago (2013-04-18 18:42:51 UTC) #13
danakj
LGTM with a few nits for the tests. https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode310 cc/trees/layer_tree_host_unittest.cc:310: EndTest(); ...
7 years, 8 months ago (2013-04-18 18:53:32 UTC) #14
danakj
(Thanks for fixing up the scrollbar extra commit)
7 years, 8 months ago (2013-04-18 18:53:42 UTC) #15
ajuma
https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode310 cc/trees/layer_tree_host_unittest.cc:310: EndTest(); On 2013/04/18 18:53:32, danakj wrote: > Can you ...
7 years, 8 months ago (2013-04-18 18:59:08 UTC) #16
ajuma
https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/14017008/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode310 cc/trees/layer_tree_host_unittest.cc:310: EndTest(); On 2013/04/18 18:53:32, danakj wrote: > Can you ...
7 years, 8 months ago (2013-04-18 19:21:24 UTC) #17
danakj
Thanks :) lgtm
7 years, 8 months ago (2013-04-18 19:22:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/14017008/27001
7 years, 8 months ago (2013-04-18 23:14:25 UTC) #19
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 03:28:41 UTC) #20
Message was sent while issue was closed.
Change committed as 195068

Powered by Google App Engine
This is Rietveld 408576698