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

Issue 1588093004: Compute if a layer is drawn without LayerTree hierarchy (Closed)

Created:
4 years, 11 months ago by jaydasika
Modified:
4 years, 11 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sievers+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL : * deletes is_hidden * computes if a layer is drawn using the effect tree BUG=575413 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5bd215b33e6343d8ae7e52fb822dd552bf8b59a7 Cr-Commit-Position: refs/heads/master@{#371063}

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 20

Patch Set 6 : Rebase #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 4

Patch Set 13 : #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -111 lines) Patch
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 3 chunks +1 line, -7 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -8 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +15 lines, -8 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 8 9 5 chunks +12 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 7 chunks +40 lines, -20 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 16 chunks +62 lines, -35 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/property_tree.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +56 lines, -1 line 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 7 chunks +12 lines, -14 lines 0 comments Download

Messages

Total messages: 54 (7 generated)
jaydasika
PTAL
4 years, 11 months ago (2016-01-15 03:41:32 UTC) #4
ajuma
Higher level comment: now that we're using opacity 0 to hide subtrees, whether a layer ...
4 years, 11 months ago (2016-01-15 15:02:47 UTC) #5
jaydasika
https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer_impl.cc#newcode1903 cc/layers/layer_impl.cc:1903: if (HasPotentiallyRunningOpacityAnimation() || On 2016/01/15 15:02:46, ajuma wrote: > ...
4 years, 11 months ago (2016-01-15 18:23:06 UTC) #6
ajuma
https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer_impl.cc#newcode1903 cc/layers/layer_impl.cc:1903: if (HasPotentiallyRunningOpacityAnimation() || On 2016/01/15 18:23:05, jaydasika wrote: > ...
4 years, 11 months ago (2016-01-15 18:48:16 UTC) #7
weiliangc
Some high level comments. In my mind how this works is that effect node would ...
4 years, 11 months ago (2016-01-15 19:30:24 UTC) #8
jaydasika
On 2016/01/15 19:30:24, weiliangc wrote: > Some high level comments. > > In my mind ...
4 years, 11 months ago (2016-01-15 19:49:40 UTC) #9
weiliangc
On 2016/01/15 at 19:49:40, jaydasika wrote: > On 2016/01/15 19:30:24, weiliangc wrote: > > Some ...
4 years, 11 months ago (2016-01-15 20:11:10 UTC) #10
ajuma
On 2016/01/15 20:11:10, weiliangc wrote: > On 2016/01/15 at 19:49:40, jaydasika wrote: > > On ...
4 years, 11 months ago (2016-01-15 20:28:30 UTC) #11
weiliangc
On 2016/01/15 at 20:28:30, ajuma wrote: > On 2016/01/15 20:11:10, weiliangc wrote: > > On ...
4 years, 11 months ago (2016-01-15 20:32:52 UTC) #12
weiliangc
On 2016/01/15 at 20:32:52, weiliangc wrote: > On 2016/01/15 at 20:28:30, ajuma wrote: > > ...
4 years, 11 months ago (2016-01-15 20:34:45 UTC) #13
jaydasika
On 2016/01/15 20:34:45, weiliangc wrote: > On 2016/01/15 at 20:32:52, weiliangc wrote: > > On ...
4 years, 11 months ago (2016-01-15 23:05:13 UTC) #14
jaydasika
On 2016/01/15 23:05:13, jaydasika wrote: > On 2016/01/15 20:34:45, weiliangc wrote: > > On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 23:08:55 UTC) #15
ajuma
On 2016/01/15 23:08:55, jaydasika wrote: > On 2016/01/15 23:05:13, jaydasika wrote: > > On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 23:59:03 UTC) #16
weiliangc
On 2016/01/15 23:59:03, ajuma wrote: > On 2016/01/15 23:08:55, jaydasika wrote: > > On 2016/01/15 ...
4 years, 11 months ago (2016-01-19 19:24:42 UTC) #17
jaydasika
Moved the computation to effect tree. https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1588093004/diff/20001/cc/layers/layer.cc#newcode1920 cc/layers/layer.cc:1920: // Layers that ...
4 years, 11 months ago (2016-01-19 20:02:49 UTC) #18
weiliangc
Thanks for making it simpler. https://codereview.chromium.org/1588093004/diff/80001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1588093004/diff/80001/cc/trees/layer_tree_host_common.cc#newcode2363 cc/trees/layer_tree_host_common.cc:2363: bool layer_is_drawn; Initialize this ...
4 years, 11 months ago (2016-01-19 21:03:09 UTC) #19
jaydasika
https://codereview.chromium.org/1588093004/diff/80001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1588093004/diff/80001/cc/trees/layer_tree_host_common.cc#newcode2363 cc/trees/layer_tree_host_common.cc:2363: bool layer_is_drawn; On 2016/01/19 21:03:08, weiliangc wrote: > Initialize ...
4 years, 11 months ago (2016-01-19 22:10:36 UTC) #20
weiliangc
https://codereview.chromium.org/1588093004/diff/80001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/80001/cc/trees/property_tree.cc#newcode1061 cc/trees/property_tree.cc:1061: if (node->data.has_copy_request || On 2016/01/19 at 22:10:36, jaydasika wrote: ...
4 years, 11 months ago (2016-01-19 22:23:29 UTC) #21
jaydasika
https://codereview.chromium.org/1588093004/diff/80001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/80001/cc/trees/property_tree.cc#newcode1078 cc/trees/property_tree.cc:1078: UpdateIsDrawn(node, parent_node); On 2016/01/19 22:23:29, weiliangc wrote: > On ...
4 years, 11 months ago (2016-01-19 22:31:36 UTC) #22
ajuma
Just a couple nits, but otherwise lgtm % weiliangc https://codereview.chromium.org/1588093004/diff/120001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/120001/cc/trees/property_tree.cc#newcode1100 cc/trees/property_tree.cc:1100: ...
4 years, 11 months ago (2016-01-19 23:57:33 UTC) #23
jaydasika
On 2016/01/19 23:57:33, ajuma wrote: > Just a couple nits, but otherwise lgtm % weiliangc ...
4 years, 11 months ago (2016-01-20 00:08:14 UTC) #24
ajuma
On 2016/01/20 00:08:14, jaydasika wrote: > On 2016/01/19 23:57:33, ajuma wrote: > > Just a ...
4 years, 11 months ago (2016-01-20 00:33:39 UTC) #25
weiliangc
On 2016/01/20 at 00:33:39, ajuma wrote: > On 2016/01/20 00:08:14, jaydasika wrote: > > On ...
4 years, 11 months ago (2016-01-20 01:46:15 UTC) #26
ajuma
On 2016/01/20 01:46:15, weiliangc wrote: > On 2016/01/20 at 00:33:39, ajuma wrote: > > Where ...
4 years, 11 months ago (2016-01-20 14:11:41 UTC) #27
jaydasika
As Ali suggested, I added back hide_layer_and_subtree to cc::Layer and cc::LayerImpl and made the cc::Layer::opacity() ...
4 years, 11 months ago (2016-01-21 00:47:59 UTC) #29
jaydasika
https://codereview.chromium.org/1588093004/diff/150001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/1588093004/diff/150001/cc/layers/layer_impl.cc#newcode986 cc/layers/layer_impl.cc:986: UpdatePropertyTreeOpacity(); Question : Do we need to update property ...
4 years, 11 months ago (2016-01-21 00:53:10 UTC) #30
ajuma
Approach looks good, but there are a few test failures that need to be sorted ...
4 years, 11 months ago (2016-01-21 14:38:05 UTC) #31
weiliangc
ui::layer may still need to cache opacity? When layer is hidden cc::layer would return opacity ...
4 years, 11 months ago (2016-01-21 16:21:46 UTC) #32
ajuma
On 2016/01/21 16:21:46, weiliangc wrote: > ui::layer may still need to cache opacity? When layer ...
4 years, 11 months ago (2016-01-21 16:26:43 UTC) #33
jaydasika
1) Added Layer(Impl)::EffectiveOpacity for effect tree to use 2) Modified the computation of contributes_to_drawn_surface to ...
4 years, 11 months ago (2016-01-21 22:09:47 UTC) #34
ajuma
https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc#newcode1097 cc/trees/property_tree.cc:1097: node->data.is_drawn && node->data.opacity != 0; What if you just ...
4 years, 11 months ago (2016-01-21 23:06:21 UTC) #35
jaydasika
https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc#newcode1095 cc/trees/property_tree.cc:1095: node->data.has_background_filters) On 2016/01/21 23:06:20, ajuma wrote: > Is this ...
4 years, 11 months ago (2016-01-21 23:37:09 UTC) #36
ajuma
https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc#newcode1095 cc/trees/property_tree.cc:1095: node->data.has_background_filters) On 2016/01/21 23:37:09, jaydasika wrote: > On 2016/01/21 ...
4 years, 11 months ago (2016-01-22 00:24:42 UTC) #37
jaydasika
On 2016/01/22 00:24:42, ajuma wrote: > https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc > File cc/trees/property_tree.cc (right): > > https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc#newcode1095 > ...
4 years, 11 months ago (2016-01-22 00:32:57 UTC) #38
ajuma
On 2016/01/22 00:32:57, jaydasika wrote: > On 2016/01/22 00:24:42, ajuma wrote: > > > https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc ...
4 years, 11 months ago (2016-01-22 00:41:15 UTC) #39
jaydasika
On 2016/01/22 00:41:15, ajuma wrote: > On 2016/01/22 00:32:57, jaydasika wrote: > > On 2016/01/22 ...
4 years, 11 months ago (2016-01-22 00:46:29 UTC) #40
ajuma
On 2016/01/22 00:46:29, jaydasika wrote: > On 2016/01/22 00:41:15, ajuma wrote: > > On 2016/01/22 ...
4 years, 11 months ago (2016-01-22 00:51:53 UTC) #41
jaydasika
https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/210001/cc/trees/property_tree.cc#newcode1095 cc/trees/property_tree.cc:1095: node->data.has_background_filters) On 2016/01/22 00:24:42, ajuma wrote: > On 2016/01/21 ...
4 years, 11 months ago (2016-01-22 00:59:53 UTC) #42
jaydasika
https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc#newcode1097 cc/trees/property_tree.cc:1097: node->data.is_drawn && node->data.opacity != 0; On 2016/01/21 23:06:20, ajuma ...
4 years, 11 months ago (2016-01-22 01:01:26 UTC) #43
ajuma
On 2016/01/22 01:01:26, jaydasika wrote: > https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc > File cc/trees/property_tree.cc (right): > > https://codereview.chromium.org/1588093004/diff/150001/cc/trees/property_tree.cc#newcode1097 > ...
4 years, 11 months ago (2016-01-22 14:03:29 UTC) #44
jaydasika
Changed contributes_to_drawn_surface.
4 years, 11 months ago (2016-01-22 16:04:14 UTC) #45
ajuma
On 2016/01/22 16:04:14, jaydasika wrote: > Changed contributes_to_drawn_surface. Thanks a lot for all the investigation ...
4 years, 11 months ago (2016-01-22 17:37:06 UTC) #46
weiliangc
Thanks for working this out! LGTM
4 years, 11 months ago (2016-01-22 18:24:00 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588093004/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588093004/250001
4 years, 11 months ago (2016-01-22 22:30:26 UTC) #49
commit-bot: I haz the power
Committed patchset #14 (id:250001)
4 years, 11 months ago (2016-01-22 22:40:44 UTC) #51
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/5bd215b33e6343d8ae7e52fb822dd552bf8b59a7 Cr-Commit-Position: refs/heads/master@{#371063}
4 years, 11 months ago (2016-01-22 22:42:00 UTC) #53
Nico
4 years, 11 months ago (2016-01-23 23:16:27 UTC) #54
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:250001) has been created in
https://codereview.chromium.org/1621013002/ by thakis@chromium.org.

The reason for reverting is: Speculative; might have broken tests on Chrome OS,
see http://crbug.com/580806.

Powered by Google App Engine
This is Rietveld 408576698