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

Issue 16896017: Add a hide_layer_and_subtree() flag to cc::Layer (Closed)

Created:
7 years, 6 months ago by danakj
Modified:
7 years, 6 months ago
Reviewers:
enne (OOO), piman
CC:
chromium-reviews, Ian Vollick, piman+watch_chromium.org, cc-bugs_chromium.org, jonathan.backer
Visibility:
Public.

Description

Add a hide_layer_and_subtree() flag to cc::Layer This flag does what it says. We can use this flag to simplify ui::Layer as it was recursively calling SetIsDrawable() instead, and now can just SetHideLayerAndSubtree() on a single layer. This flag is needed to allow readbacks of layers that are have hidden visibility (possibly due to an ancestor). Tests: LayerTest.CheckPropertyChangeCausesCorrectBehavior LayerImplTest.VerifyLayerChangesAreTrackedProperly LayerTreeHostCommonTest.SubtreeHidden_SingleLayer LayerTreeHostCommonTest.SubtreeHidden_SingleLayerImpl LayerTreeHostCommonTest.SubtreeHidden_TwoLayers LayerTreeHostCommonTest.SubtreeHidden_TwoLayersImpl R=enne, piman BUG=242572 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208241

Patch Set 1 #

Patch Set 2 : hide-subtree-flag: withpushprops #

Patch Set 3 : hide-subtree-flag: #

Total comments: 2

Patch Set 4 : hide-subtree-flag: aura::Window::IsVisible #

Patch Set 5 : hide-subtree-flag: fix views_unittests #

Patch Set 6 : hide-subtree-flag: revert Layer::IsDrawn() back to what it used to be #

Patch Set 7 : hide-subtree-flag: SetIsDrawable on the new cc_layer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -38 lines) Patch
M cc/layers/layer.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 3 chunks +10 lines, -0 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 chunks +9 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 2 chunks +245 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 6 chunks +7 lines, -20 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 2 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
danakj
enne@ please review cc/ piman@ please review ui/
7 years, 6 months ago (2013-06-19 23:34:59 UTC) #1
danakj
Oh, I never push properties the flag do I. Clearly I need a test for ...
7 years, 6 months ago (2013-06-19 23:37:22 UTC) #2
enne (OOO)
lgtm, once the flag gets pushed in PushPropertiesTo.
7 years, 6 months ago (2013-06-19 23:48:22 UTC) #3
danakj
New patch with PushProps and a test, and a bug fix for the root layer ...
7 years, 6 months ago (2013-06-20 00:13:31 UTC) #4
enne (OOO)
https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc#newcode1504 cc/trees/layer_tree_host_common.cc:1504: if (!IsRootLayer(layer) && sorting_start_index == descendants.size()) If the root ...
7 years, 6 months ago (2013-06-20 00:17:47 UTC) #5
danakj
https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc#newcode1504 cc/trees/layer_tree_host_common.cc:1504: if (!IsRootLayer(layer) && sorting_start_index == descendants.size()) On 2013/06/20 00:17:47, ...
7 years, 6 months ago (2013-06-20 00:20:04 UTC) #6
enne (OOO)
On 2013/06/20 00:20:04, danakj wrote: > https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc > File cc/trees/layer_tree_host_common.cc (right): > > https://codereview.chromium.org/16896017/diff/6001/cc/trees/layer_tree_host_common.cc#newcode1504 > ...
7 years, 6 months ago (2013-06-20 00:24:21 UTC) #7
danakj
On Wed, Jun 19, 2013 at 8:24 PM, <enne@chromium.org> wrote: > On 2013/06/20 00:20:04, danakj ...
7 years, 6 months ago (2013-06-20 00:27:20 UTC) #8
enne (OOO)
lgtmforreal
7 years, 6 months ago (2013-06-20 00:38:39 UTC) #9
piman
LGTM!
7 years, 6 months ago (2013-06-20 00:41:05 UTC) #10
danakj
+sky Please take a look at ui/aura/window.cc. We no longer have a recursively set flag ...
7 years, 6 months ago (2013-06-20 00:57:11 UTC) #11
danakj
On 2013/06/20 00:57:11, danakj wrote: > +sky Please take a look at ui/aura/window.cc. > > ...
7 years, 6 months ago (2013-06-20 01:19:59 UTC) #12
danakj
Ah, instead of moving this IsDrawn() walk up the parents to all the call sites, ...
7 years, 6 months ago (2013-06-20 15:20:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/16896017/34001
7 years, 6 months ago (2013-06-20 15:21:11 UTC) #14
commit-bot: I haz the power
Change committed as 207508
7 years, 6 months ago (2013-06-20 19:40:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/16896017/51001
7 years, 6 months ago (2013-06-24 15:49:17 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-24 18:32:20 UTC) #17
Message was sent while issue was closed.
Change committed as 208241

Powered by Google App Engine
This is Rietveld 408576698