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

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed)

Created:
6 years, 8 months ago by Ian Vollick
Modified:
6 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Don't clear render surfaces unnecessarily. As an optimization, we used to clear render surfaces when they were elided from the RenderSurfaceLayerList. It turns out that these surfaces are still important from time to time; a scroll child will need to access the transforms of these surfaces in order to put its clip in the right space. This CL retains the layer lists and it also updates RenderSurface to own a LayerList rather than a RenderSurfaceLayerList (which was always a bit of a kludge). R=danakj@chromium.org BUG=366386 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266519

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Make the bots happy. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -36 lines) Patch
M cc/layers/layer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/layer_iterator.h View 4 chunks +12 lines, -7 lines 0 comments Download
M cc/layers/layer_iterator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_lists.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/render_surface.h View 3 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/render_surface.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 10 chunks +24 lines, -22 lines 1 comment Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Ian Vollick
6 years, 8 months ago (2014-04-25 22:29:36 UTC) #1
danakj
Let's clear the RenderSurface::layer_list_ instead of deleting the RenderSurface. That way we don't introduce new ...
6 years, 8 months ago (2014-04-25 22:59:24 UTC) #2
Ian Vollick
https://codereview.chromium.org/250803013/diff/1/cc/layers/layer_lists.h File cc/layers/layer_lists.h (right): https://codereview.chromium.org/250803013/diff/1/cc/layers/layer_lists.h#newcode41 cc/layers/layer_lists.h:41: LayerList* layer_list() { return &list_; } On 2014/04/25 22:59:24, ...
6 years, 8 months ago (2014-04-25 23:14:39 UTC) #3
danakj
LGTM
6 years, 8 months ago (2014-04-25 23:17:28 UTC) #4
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 23:17:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-25 23:22:10 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 03:14:14 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-26 03:14:15 UTC) #8
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-26 09:53:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-26 09:54:36 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 10:43:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-26 10:43:02 UTC) #12
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-26 11:58:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-26 11:58:31 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 12:37:36 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-26 12:37:36 UTC) #16
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-26 13:51:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-26 13:52:42 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 14:25:52 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-26 14:25:52 UTC) #20
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-27 01:39:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-27 01:40:29 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-27 02:18:23 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-27 02:18:23 UTC) #24
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-27 02:19:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/40001
6 years, 8 months ago (2014-04-27 02:19:48 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-27 02:29:56 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-27 02:29:57 UTC) #28
Ian Vollick
On 2014/04/27 02:29:57, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-27 17:56:06 UTC) #29
Ian Vollick
On 2014/04/27 17:56:06, Ian Vollick wrote: > On 2014/04/27 02:29:57, I haz the power (commit-bot) ...
6 years, 8 months ago (2014-04-27 18:42:16 UTC) #30
Ian Vollick
On 2014/04/27 17:56:06, Ian Vollick wrote: > On 2014/04/27 02:29:57, I haz the power (commit-bot) ...
6 years, 8 months ago (2014-04-27 18:42:16 UTC) #31
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 8 months ago (2014-04-27 20:21:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/60001
6 years, 8 months ago (2014-04-27 20:21:39 UTC) #33
Ian Vollick
The CQ bit was unchecked by vollick@chromium.org
6 years, 7 months ago (2014-04-28 07:57:00 UTC) #34
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 7 months ago (2014-04-28 07:57:15 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/250803013/60001
6 years, 7 months ago (2014-04-28 07:57:54 UTC) #36
commit-bot: I haz the power
Change committed as 266519
6 years, 7 months ago (2014-04-28 12:20:37 UTC) #37
danakj
6 years, 7 months ago (2014-04-28 15:02:16 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/250803013/diff/60001/cc/trees/layer_tree_host...
File cc/trees/layer_tree_host_common.cc (right):

https://codereview.chromium.org/250803013/diff/60001/cc/trees/layer_tree_host...
cc/trees/layer_tree_host_common.cc:2077:
!child->render_surface()->layer_list().empty() &&
How come the render surface's content rect is not empty if the layer list is
empty?

Powered by Google App Engine
This is Rietveld 408576698