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

Issue 23102003: Note scrollbar layer properties changed when position changes. (Closed)

Created:
7 years, 4 months ago by jbauman
Modified:
7 years, 4 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Note scrollbar layer properties changed when position changes. The layer properties need to be changed when the current scroll position changes or else the damage will be ignored and it won't be painted. BUG=272361 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217728

Patch Set 1 #

Total comments: 1

Patch Set 2 : add test #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -58 lines) Patch
M cc/layers/layer_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/scrollbar_layer.cc View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.h View 1 2 3 1 chunk +8 lines, -20 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.cc View 1 2 3 2 chunks +59 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 6 chunks +19 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 2 3 4 5 6 2 chunks +102 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jbauman
7 years, 4 months ago (2013-08-13 19:06:00 UTC) #1
danakj
Can you add a test for this?
7 years, 4 months ago (2013-08-13 19:09:51 UTC) #2
danakj
On 2013/08/13 19:09:51, danakj wrote: > Can you add a test for this? layer_tree_host_unittest_damage.cc might ...
7 years, 4 months ago (2013-08-13 19:11:02 UTC) #3
piman
drive-by: do we have a test (layout?) that makes sure that we don't blow up ...
7 years, 4 months ago (2013-08-13 19:28:37 UTC) #4
danakj
https://codereview.chromium.org/23102003/diff/1/cc/layers/scrollbar_layer_impl.cc File cc/layers/scrollbar_layer_impl.cc (right): https://codereview.chromium.org/23102003/diff/1/cc/layers/scrollbar_layer_impl.cc#newcode179 cc/layers/scrollbar_layer_impl.cc:179: maximum_ = maximum; Yes please early out here if ...
7 years, 4 months ago (2013-08-13 19:32:40 UTC) #5
danakj
I'd also like to understand why these work at all in GL mode..
7 years, 4 months ago (2013-08-13 19:33:25 UTC) #6
enne (OOO)
You'll also need to do this damaging when changing the thumb's parameters as well (any ...
7 years, 4 months ago (2013-08-13 19:43:13 UTC) #7
jbauman
On 2013/08/13 19:11:02, danakj wrote: > On 2013/08/13 19:09:51, danakj wrote: > > Can you ...
7 years, 4 months ago (2013-08-14 17:57:20 UTC) #8
jbauman
PTAL. Added a test and handling of other properties.
7 years, 4 months ago (2013-08-14 21:08:40 UTC) #9
danakj
Thanks! Few comments for the test. https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc#newcode297 cc/trees/layer_tree_host_unittest_damage.cc:297: layer_tree_root_ = Layer::Create(); ...
7 years, 4 months ago (2013-08-14 21:29:14 UTC) #10
enne (OOO)
https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc#newcode333 cc/trees/layer_tree_host_unittest_damage.cc:333: EXPECT_FALSE(root_damage.Contains(gfx::Rect(300, 300, 10, 100))); Can Contains be changed to ...
7 years, 4 months ago (2013-08-14 21:33:40 UTC) #11
jbauman
On 2013/08/14 21:33:40, enne wrote: > https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc > File cc/trees/layer_tree_host_unittest_damage.cc (right): > > https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc#newcode333 > ...
7 years, 4 months ago (2013-08-14 21:36:00 UTC) #12
jbauman
On 2013/08/14 21:36:00, jbauman wrote: > On 2013/08/14 21:33:40, enne wrote: > > > https://codereview.chromium.org/23102003/diff/22001/cc/trees/layer_tree_host_unittest_damage.cc ...
7 years, 4 months ago (2013-08-14 21:36:11 UTC) #13
jbauman
Ok, should be fixed. On 2013/08/14 21:29:14, danakj wrote: > Thanks! Few comments for the ...
7 years, 4 months ago (2013-08-14 22:10:35 UTC) #14
danakj
Thanks! LGTM https://codereview.chromium.org/23102003/diff/39001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23102003/diff/39001/cc/trees/layer_tree_host_unittest_damage.cc#newcode386 cc/trees/layer_tree_host_unittest_damage.cc:386: MULTI_THREAD_TEST_F(LayerTreeHostDamageTestScrollbarDoesDamage); nit: Can this be SINGLE_AND_MULTI_THREAD_TEST_F?
7 years, 4 months ago (2013-08-14 22:17:20 UTC) #15
enne (OOO)
lgtm2 https://codereview.chromium.org/23102003/diff/39001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23102003/diff/39001/cc/trees/layer_tree_host_unittest_damage.cc#newcode371 cc/trees/layer_tree_host_unittest_damage.cc:371: root->children()[0]->SetPosition(gfx::Point(1,1)); Could you also set the scrollbar to ...
7 years, 4 months ago (2013-08-14 22:20:46 UTC) #16
jbauman
On 2013/08/14 22:17:20, danakj wrote: > Thanks! LGTM > > https://codereview.chromium.org/23102003/diff/39001/cc/trees/layer_tree_host_unittest_damage.cc > File cc/trees/layer_tree_host_unittest_damage.cc (right): ...
7 years, 4 months ago (2013-08-14 22:24:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/23102003/31001
7 years, 4 months ago (2013-08-14 22:36:12 UTC) #18
danakj
On Wed, Aug 14, 2013 at 6:24 PM, <jbauman@chromium.org> wrote: > No, impl-thread scrolling and ...
7 years, 4 months ago (2013-08-14 22:36:41 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-15 01:46:24 UTC) #20
Message was sent while issue was closed.
Change committed as 217728

Powered by Google App Engine
This is Rietveld 408576698