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

Issue 2840433002: Move LayerImpl's bounds_delta to property trees (Closed)

Created:
3 years, 8 months ago by pdr.
Modified:
3 years, 8 months ago
Reviewers:
bokan, ajuma, wkorman, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move LayerImpl's bounds_delta to property trees This patch fully moves LayerImpl::bounds_delta_ to PropertyTrees which frees storage on LayerImpl and unifies logic. PropertyTrees already tracked these deltas in "*bounds_delta_" members, so they were stored in two places. With the bounds deltas only on PropertyTrees, LayerTreeImpl::UpdatePropertyTreesForBoundsDelta can be removed since it is redundant. As part of this refactoring, the bounds delta concept has been renamed "ViewportBoundsDelta" to make it clear that it is only used for special viewport layers, and to differentiate it from scroll deltas. BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2840433002 Cr-Commit-Position: refs/heads/master@{#467111} Committed: https://chromium.googlesource.com/chromium/src/+/23d381fd827c8880b85fe5794627e98af07454cc

Patch Set 1 #

Total comments: 11

Patch Set 2 : NOTREACHED #

Total comments: 1

Patch Set 3 : Document ViewportBoundsDelta better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -89 lines) Patch
M cc/layers/layer_impl.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 5 chunks +22 lines, -10 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 10 chunks +14 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 5 chunks +13 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 4 chunks +1 line, -45 lines 0 comments Download

Messages

Total messages: 37 (18 generated)
pdr.
3 years, 8 months ago (2017-04-24 16:50:43 UTC) #6
ajuma
https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc#newcode545 cc/layers/layer_impl.cc:545: DCHECK(false); NOTREACHED() https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (left): https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc#oldcode473 cc/trees/layer_tree_impl.cc:473: target_tree->UpdatePropertyTreesForBoundsDelta(); ...
3 years, 8 months ago (2017-04-24 17:37:09 UTC) #7
enne (OOO)
https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc#newcode534 cc/layers/layer_impl.cc:534: if (bounds_delta == ViewportBoundsDelta()) This is premature optimization, but ...
3 years, 8 months ago (2017-04-24 18:05:09 UTC) #8
pdr.
https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2840433002/diff/1/cc/layers/layer_impl.cc#newcode534 cc/layers/layer_impl.cc:534: if (bounds_delta == ViewportBoundsDelta()) On 2017/04/24 at 18:05:08, enne ...
3 years, 8 months ago (2017-04-24 20:06:49 UTC) #9
enne (OOO)
lgtm then % ajuma.
3 years, 8 months ago (2017-04-24 20:17:39 UTC) #12
ajuma
https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (left): https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc#oldcode473 cc/trees/layer_tree_impl.cc:473: target_tree->UpdatePropertyTreesForBoundsDelta(); On 2017/04/24 20:06:49, pdr. wrote: > On 2017/04/24 ...
3 years, 8 months ago (2017-04-24 21:06:20 UTC) #13
pdr.
https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (left): https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc#oldcode473 cc/trees/layer_tree_impl.cc:473: target_tree->UpdatePropertyTreesForBoundsDelta(); On 2017/04/24 at 21:06:20, ajuma wrote: > On ...
3 years, 8 months ago (2017-04-25 04:01:55 UTC) #17
wkorman
lgtm https://codereview.chromium.org/2840433002/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/2840433002/diff/20001/cc/layers/layer_impl.h#newcode273 cc/layers/layer_impl.h:273: gfx::Vector2dF ViewportBoundsDelta() const; Document what this does in ...
3 years, 8 months ago (2017-04-25 18:38:05 UTC) #18
pdr.
On 2017/04/25 at 18:38:05, wkorman wrote: > lgtm > > https://codereview.chromium.org/2840433002/diff/20001/cc/layers/layer_impl.h > File cc/layers/layer_impl.h (right): ...
3 years, 8 months ago (2017-04-25 18:55:18 UTC) #19
bokan
https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (left): https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc#oldcode473 cc/trees/layer_tree_impl.cc:473: target_tree->UpdatePropertyTreesForBoundsDelta(); On 2017/04/25 04:01:55, pdr. wrote: > On 2017/04/24 ...
3 years, 8 months ago (2017-04-25 19:01:46 UTC) #22
pdr.
On 2017/04/25 at 19:01:46, bokan wrote: > https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc > File cc/trees/layer_tree_impl.cc (left): > > https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc#oldcode473 ...
3 years, 8 months ago (2017-04-25 19:43:03 UTC) #23
bokan
On 2017/04/25 19:43:03, pdr. wrote: > On 2017/04/25 at 19:01:46, bokan wrote: > > https://codereview.chromium.org/2840433002/diff/1/cc/trees/layer_tree_impl.cc ...
3 years, 8 months ago (2017-04-25 19:47:35 UTC) #24
bokan
On 2017/04/25 19:47:35, bokan wrote: > On 2017/04/25 19:43:03, pdr. wrote: > > On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 20:22:15 UTC) #27
pdr.
On 2017/04/25 at 20:22:15, bokan wrote: > On 2017/04/25 19:47:35, bokan wrote: > > On ...
3 years, 8 months ago (2017-04-25 20:50:50 UTC) #28
bokan
On 2017/04/25 20:50:50, pdr. wrote: > On 2017/04/25 at 20:22:15, bokan wrote: > > On ...
3 years, 8 months ago (2017-04-25 20:54:08 UTC) #29
ajuma
On 2017/04/25 20:54:08, bokan wrote: > On 2017/04/25 20:50:50, pdr. wrote: > > On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 20:54:53 UTC) #30
pdr.
On 2017/04/25 at 20:54:53, ajuma wrote: > On 2017/04/25 20:54:08, bokan wrote: > > On ...
3 years, 8 months ago (2017-04-25 20:56:13 UTC) #31
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/2840433002/40001
3 years, 8 months ago (2017-04-25 20:57:29 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 21:07:13 UTC) #37
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/23d381fd827c8880b85fe5794627...

Powered by Google App Engine
This is Rietveld 408576698