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

Issue 1231453002: Compute if a layer is clipped outside CalcDrawProps (Closed)

Created:
5 years, 5 months ago by jaydasika
Modified:
5 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute if a layer is clipped outside CalcDrawProps We need to know if a layer is clipped to compute its drawable visible rect. So, we need to compute it outside CalcDrawProps to move drawable visible rect computation outside CalcDrawProps. BUG=497817 Committed: https://crrev.com/2af7226e29be65a8ea4a279b9358a6fcfada5cd3 Cr-Commit-Position: refs/heads/master@{#338515} CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50 Cr-Commit-Position: refs/heads/master@{#338691}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment on Patch 1 #

Total comments: 3

Patch Set 3 : is_clipped moved from draw_properties to layer #

Total comments: 2

Patch Set 4 : DrawProperties is_clipped removed #

Total comments: 19

Patch Set 5 : Comments on PatchSet4 #

Total comments: 1

Patch Set 6 : CHECK -> DCHECK #

Patch Set 7 : Rebuild when render surface is updated #

Patch Set 8 : Nits #

Total comments: 2

Patch Set 9 : Rebuild moved to SetHasRenderSurface #

Patch Set 10 : Initialized is_clipped_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -27 lines) Patch
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/draw_properties.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 4 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 7 8 4 chunks +20 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 51 (11 generated)
jaydasika
5 years, 5 months ago (2015-07-07 15:38:49 UTC) #2
weiliangc
https://codereview.chromium.org/1231453002/diff/1/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1231453002/diff/1/cc/trees/property_tree_builder.cc#newcode148 cc/trees/property_tree_builder.cc:148: // TODO(jaydasika): This value depends on whether a layer ...
5 years, 5 months ago (2015-07-07 15:54:02 UTC) #3
ajuma
https://codereview.chromium.org/1231453002/diff/20001/cc/layers/draw_properties.h File cc/layers/draw_properties.h (right): https://codereview.chromium.org/1231453002/diff/20001/cc/layers/draw_properties.h#newcode77 cc/layers/draw_properties.h:77: bool is_clipped_from_property_trees; So far I think we've been adding ...
5 years, 5 months ago (2015-07-07 17:58:48 UTC) #4
enne (OOO)
https://codereview.chromium.org/1231453002/diff/20001/cc/layers/draw_properties.h File cc/layers/draw_properties.h (right): https://codereview.chromium.org/1231453002/diff/20001/cc/layers/draw_properties.h#newcode77 cc/layers/draw_properties.h:77: bool is_clipped_from_property_trees; This is a bit odd to have ...
5 years, 5 months ago (2015-07-07 18:25:48 UTC) #6
jaydasika
https://codereview.chromium.org/1231453002/diff/1/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1231453002/diff/1/cc/trees/property_tree_builder.cc#newcode148 cc/trees/property_tree_builder.cc:148: // TODO(jaydasika): This value depends on whether a layer ...
5 years, 5 months ago (2015-07-07 18:35:28 UTC) #7
enne (OOO)
On 2015/07/07 at 18:35:28, jaydasika wrote: > https://codereview.chromium.org/1231453002/diff/20001/cc/layers/draw_properties.h#newcode77 > cc/layers/draw_properties.h:77: bool is_clipped_from_property_trees; > On 2015/07/07 ...
5 years, 5 months ago (2015-07-07 18:47:51 UTC) #8
jaydasika
On 2015/07/07 18:47:51, enne wrote: > On 2015/07/07 at 18:35:28, jaydasika wrote: > > > ...
5 years, 5 months ago (2015-07-07 18:53:27 UTC) #9
enne (OOO)
On 2015/07/07 at 18:53:27, jaydasika wrote: > > Is it possible to remove is_clipped from ...
5 years, 5 months ago (2015-07-07 18:56:13 UTC) #10
jaydasika
On 2015/07/07 18:56:13, enne wrote: > On 2015/07/07 at 18:53:27, jaydasika wrote: > > > ...
5 years, 5 months ago (2015-07-07 19:01:32 UTC) #11
Ian Vollick
https://codereview.chromium.org/1231453002/diff/40001/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1231453002/diff/40001/cc/trees/property_tree_builder.cc#newcode150 cc/trees/property_tree_builder.cc:150: // render surfaces(see http://crbug.com/504467), this should move. Hey, I ...
5 years, 5 months ago (2015-07-07 19:09:39 UTC) #13
jaydasika
https://codereview.chromium.org/1231453002/diff/40001/cc/trees/property_tree_builder.cc File cc/trees/property_tree_builder.cc (right): https://codereview.chromium.org/1231453002/diff/40001/cc/trees/property_tree_builder.cc#newcode150 cc/trees/property_tree_builder.cc:150: // render surfaces(see http://crbug.com/504467), this should move. On 2015/07/07 ...
5 years, 5 months ago (2015-07-07 19:15:56 UTC) #14
jaydasika
On 2015/07/07 19:01:32, jaydasika wrote: > On 2015/07/07 18:56:13, enne wrote: > > On 2015/07/07 ...
5 years, 5 months ago (2015-07-07 20:07:40 UTC) #15
enne (OOO)
On 2015/07/07 at 20:07:40, jaydasika wrote: > > So, we can remove it. > > ...
5 years, 5 months ago (2015-07-07 20:29:26 UTC) #16
jaydasika
On 2015/07/07 20:29:26, enne wrote: > On 2015/07/07 at 20:07:40, jaydasika wrote: > > > ...
5 years, 5 months ago (2015-07-07 20:37:05 UTC) #17
enne (OOO)
On 2015/07/07 at 20:37:05, jaydasika wrote: > On 2015/07/07 20:29:26, enne wrote: > > On ...
5 years, 5 months ago (2015-07-07 20:44:08 UTC) #18
jaydasika
5 years, 5 months ago (2015-07-09 00:00:00 UTC) #19
jaydasika
On 2015/07/09 00:00:00, jaydasika wrote: The DrawProperties version of is_clipped is removed in PatchSet 4, ...
5 years, 5 months ago (2015-07-09 14:18:44 UTC) #20
Ian Vollick
https://codereview.chromium.org/1231453002/diff/60001/cc/layers/delegated_renderer_layer_impl_unittest.cc File cc/layers/delegated_renderer_layer_impl_unittest.cc (left): https://codereview.chromium.org/1231453002/diff/60001/cc/layers/delegated_renderer_layer_impl_unittest.cc#oldcode797 cc/layers/delegated_renderer_layer_impl_unittest.cc:797: nit: no need for spurious whitespace changes. https://codereview.chromium.org/1231453002/diff/60001/cc/layers/layer.h File ...
5 years, 5 months ago (2015-07-09 14:26:27 UTC) #21
ajuma
https://codereview.chromium.org/1231453002/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1231453002/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode1329 cc/layers/picture_layer_impl_unittest.cc:1329: host_impl_.pending_tree()->BuildPropertyTreesForTesting(); Do we need to rebuild property trees again? ...
5 years, 5 months ago (2015-07-09 14:50:16 UTC) #22
jaydasika
https://codereview.chromium.org/1231453002/diff/60001/cc/layers/delegated_renderer_layer_impl_unittest.cc File cc/layers/delegated_renderer_layer_impl_unittest.cc (left): https://codereview.chromium.org/1231453002/diff/60001/cc/layers/delegated_renderer_layer_impl_unittest.cc#oldcode797 cc/layers/delegated_renderer_layer_impl_unittest.cc:797: On 2015/07/09 14:26:27, vollick wrote: > nit: no need ...
5 years, 5 months ago (2015-07-09 15:11:49 UTC) #23
Ian Vollick
https://codereview.chromium.org/1231453002/diff/60001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1231453002/diff/60001/cc/layers/layer_impl.h#newcode186 cc/layers/layer_impl.h:186: void set_is_clipped_from_property_tree(bool is_clipped) { On 2015/07/09 15:11:49, jaydasika wrote: ...
5 years, 5 months ago (2015-07-09 16:42:18 UTC) #24
enne (OOO)
I think the major things I was concerned with look fixed. Thanks for taking the ...
5 years, 5 months ago (2015-07-09 18:06:28 UTC) #25
ajuma
I have one more nit and then this lgtm. https://codereview.chromium.org/1231453002/diff/80001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1231453002/diff/80001/cc/trees/layer_tree_host_common.cc#newcode2064 cc/trees/layer_tree_host_common.cc:2064: ...
5 years, 5 months ago (2015-07-09 18:13:50 UTC) #26
Ian Vollick
On 2015/07/09 18:13:50, ajuma wrote: > I have one more nit and then this lgtm. ...
5 years, 5 months ago (2015-07-09 18:17:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231453002/100001
5 years, 5 months ago (2015-07-09 18:27:26 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/76652)
5 years, 5 months ago (2015-07-09 19:54:50 UTC) #32
jaydasika
Some browser tests fail with this patch. The reason is render surfaces are updated on ...
5 years, 5 months ago (2015-07-10 16:25:10 UTC) #33
jaydasika
On 2015/07/10 16:25:10, jaydasika wrote: > Some browser tests fail with this patch. The reason ...
5 years, 5 months ago (2015-07-10 18:56:09 UTC) #34
ajuma
https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc#newcode2410 cc/trees/layer_tree_host_common.cc:2410: layer->layer_tree_host()->property_trees()->needs_rebuild = true; How about doing this inside Layer::SetHasRenderSurface ...
5 years, 5 months ago (2015-07-10 22:16:18 UTC) #35
jaydasika
https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc#newcode2410 cc/trees/layer_tree_host_common.cc:2410: layer->layer_tree_host()->property_trees()->needs_rebuild = true; On 2015/07/10 22:16:18, ajuma wrote: > ...
5 years, 5 months ago (2015-07-13 14:38:44 UTC) #36
ajuma
On 2015/07/13 14:38:44, jaydasika wrote: > https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc > File cc/trees/layer_tree_host_common.cc (right): > > https://codereview.chromium.org/1231453002/diff/140001/cc/trees/layer_tree_host_common.cc#newcode2410 > ...
5 years, 5 months ago (2015-07-13 14:59:49 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231453002/160001
5 years, 5 months ago (2015-07-13 15:03:57 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 5 months ago (2015-07-13 16:07:50 UTC) #41
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/2af7226e29be65a8ea4a279b9358a6fcfada5cd3 Cr-Commit-Position: refs/heads/master@{#338515}
5 years, 5 months ago (2015-07-13 16:08:38 UTC) #42
Dirk Pranke
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1236943002/ by dpranke@chromium.org. ...
5 years, 5 months ago (2015-07-13 18:48:17 UTC) #43
jaydasika
Added a patch to that initializes is_clipped.
5 years, 5 months ago (2015-07-14 14:44:43 UTC) #45
ajuma
On 2015/07/14 14:44:43, jaydasika wrote: > Added a patch to that initializes is_clipped. lgtm
5 years, 5 months ago (2015-07-14 14:46:45 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231453002/180001
5 years, 5 months ago (2015-07-14 14:49:28 UTC) #49
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-07-14 15:15:17 UTC) #50
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 15:16:40 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50
Cr-Commit-Position: refs/heads/master@{#338691}

Powered by Google App Engine
This is Rietveld 408576698