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

Issue 18400003: cc: Consider scroll offset in CalcDrawProperties (Closed)

Created:
7 years, 5 months ago by enne (OOO)
Modified:
7 years, 5 months ago
Reviewers:
danakj, jamesr
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, jamesr_chromuim.org, Ian Vollick, shawnsingh
Visibility:
Public.

Description

cc: Consider scroll offset in CalcDrawProperties Previously, any updates to scroll offset on the main thread updated both scroll offset and layer position. CalcDrawProperties only used position and ignored scroll offset. This patch changes that to consider scroll offset equally with scroll delta when computing a layer's tranform. Although this patch doesn't do anything about it yet, the end result of this disentangling is that it will become possible to early out in Layer::SetScrollOffset and not require a SetNeedsCommit when Blink updates the scroll offset to the value that it already is on the compositor thread. This is step 3 of a patch series to disentangle layer position and scroll offset. This patch depends on both https://codereview.chromium.org/18405003/ and https://codereview.chromium.org/18187004/. R=danakj@chromium.org BUG=256381 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211176

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 9

Patch Set 3 : Change size in test #

Patch Set 4 : Only move child layer for root test #

Total comments: 4

Patch Set 5 : Add common.gypi define #

Total comments: 2

Patch Set 6 : Use a gyp variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M build/common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 chunks +12 lines, -6 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
commit-bot: I haz the power
No comments yet.
7 years, 5 months ago (2013-07-08 17:52:29 UTC) #1
danakj
https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (left): https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc#oldcode397 cc/trees/layer_tree_host_common_unittest.cc:397: TEST(LayerTreeHostCommonTest, TransformsAboutScrollOffset) { Maybe this should be named DoesNotTransformAbountScrollPositionOrOffset ...
7 years, 5 months ago (2013-07-08 21:53:42 UTC) #2
enne (OOO)
https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (left): https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc#oldcode397 cc/trees/layer_tree_host_common_unittest.cc:397: TEST(LayerTreeHostCommonTest, TransformsAboutScrollOffset) { On 2013/07/08 21:53:42, danakj wrote: > ...
7 years, 5 months ago (2013-07-08 22:03:46 UTC) #3
enne (OOO)
https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_unittest_scroll.cc File cc/trees/layer_tree_host_unittest_scroll.cc (right): https://chromiumcodereview.appspot.com/18400003/diff/2001/cc/trees/layer_tree_host_unittest_scroll.cc#newcode145 cc/trees/layer_tree_host_unittest_scroll.cc:145: EXPECT_GE(impl->SourceAnimationFrameNumber(), 2); On 2013/07/08 22:03:46, enne wrote: > On ...
7 years, 5 months ago (2013-07-09 00:49:45 UTC) #4
enne (OOO)
https://codereview.chromium.org/18400003/diff/14001/cc/trees/layer_tree_host_unittest_scroll.cc File cc/trees/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/18400003/diff/14001/cc/trees/layer_tree_host_unittest_scroll.cc#newcode260 cc/trees/layer_tree_host_unittest_scroll.cc:260: child_layer_->SetPosition(gfx::Point(5, 5)); This reverts the child layer positioning when ...
7 years, 5 months ago (2013-07-09 01:45:43 UTC) #5
danakj
LGTM https://codereview.chromium.org/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (left): https://codereview.chromium.org/18400003/diff/2001/cc/trees/layer_tree_host_common_unittest.cc#oldcode397 cc/trees/layer_tree_host_common_unittest.cc:397: TEST(LayerTreeHostCommonTest, TransformsAboutScrollOffset) { On 2013/07/08 22:03:46, enne wrote: ...
7 years, 5 months ago (2013-07-09 01:52:45 UTC) #6
jamesr
https://codereview.chromium.org/18400003/diff/18001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/18400003/diff/18001/build/common.gypi#newcode1838 build/common.gypi:1838: # TODO(enne): Remove this once #ifdefs using this have ...
7 years, 5 months ago (2013-07-09 23:45:27 UTC) #7
enne (OOO)
https://codereview.chromium.org/18400003/diff/18001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/18400003/diff/18001/build/common.gypi#newcode1838 build/common.gypi:1838: # TODO(enne): Remove this once #ifdefs using this have ...
7 years, 5 months ago (2013-07-10 00:41:21 UTC) #8
jamesr
lgtm
7 years, 5 months ago (2013-07-10 04:08:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/18400003/22001
7 years, 5 months ago (2013-07-10 19:55:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/18400003/22001
7 years, 5 months ago (2013-07-10 20:48:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/18400003/22001
7 years, 5 months ago (2013-07-11 18:09:14 UTC) #12
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 18:45:48 UTC) #13
Message was sent while issue was closed.
Change committed as 211176

Powered by Google App Engine
This is Rietveld 408576698