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

Issue 2905533002: cc : Store surface layer ids on LayerTreeHost and push them at commit (Closed)

Created:
3 years, 7 months ago by jaydasika
Modified:
3 years, 6 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, jbauman, miu
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc : Store surface layer ids on LayerTreeHost and push them at commit This CL stores surface layer ids on LayerTreeHost which is pushed onto LayerTreeImpl on commit and activation. These ids are used make the compositor frame metadata instead of LayerTreeImpl::surface_layers and so this patch also deletes LayerTreeImpl::surface_layers. This CL is required to stop pushing hidden subtrees at commit. (See comments in crrev.com/2846653002) BUG=595843 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2905533002 Cr-Commit-Position: refs/heads/master@{#474907} Committed: https://chromium.googlesource.com/chromium/src/+/10be211f21100f7e9a3069cdefff580ddd0ef544

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : . #

Patch Set 4 : comments #

Total comments: 10

Patch Set 5 : comments #

Total comments: 4

Patch Set 6 : comments #

Total comments: 2

Patch Set 7 : comments #

Patch Set 8 : rebase #

Patch Set 9 : initialize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -40 lines) Patch
M cc/layers/surface_layer.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 2 3 4 5 6 7 8 4 chunks +50 lines, -1 line 0 comments Download
M cc/layers/surface_layer_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -6 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 1 2 3 4 5 6 2 chunks +33 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 3 chunks +24 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +3 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 6 chunks +14 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 4 chunks +27 lines, -13 lines 0 comments Download

Messages

Total messages: 54 (38 generated)
jaydasika
PTAL
3 years, 7 months ago (2017-05-24 00:42:44 UTC) #4
Fady Samuel
https://codereview.chromium.org/2905533002/diff/1/cc/layers/surface_layer.h File cc/layers/surface_layer.h (right): https://codereview.chromium.org/2905533002/diff/1/cc/layers/surface_layer.h#newcode56 cc/layers/surface_layer.h:56: const SurfaceId* GetSurfaceId(LayerTreeHost* new_host = nullptr); nit: GetReferencedSurfaceId
3 years, 7 months ago (2017-05-24 01:12:53 UTC) #7
jaydasika
https://codereview.chromium.org/2905533002/diff/1/cc/layers/surface_layer.h File cc/layers/surface_layer.h (right): https://codereview.chromium.org/2905533002/diff/1/cc/layers/surface_layer.h#newcode56 cc/layers/surface_layer.h:56: const SurfaceId* GetSurfaceId(LayerTreeHost* new_host = nullptr); On 2017/05/24 01:12:52, ...
3 years, 7 months ago (2017-05-24 18:13:30 UTC) #14
enne (OOO)
I think the idea here is reasonable, but I'm hoping maybe there's some opportunity for ...
3 years, 7 months ago (2017-05-24 18:44:54 UTC) #15
jaydasika
https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc#newcode118 cc/layers/surface_layer.cc:118: const SurfaceId* SurfaceLayer::GetReferencedSurfaceId(LayerTreeHost* new_host) { On 2017/05/24 18:44:54, enne ...
3 years, 7 months ago (2017-05-24 21:39:54 UTC) #16
enne (OOO)
https://codereview.chromium.org/2905533002/diff/80001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/80001/cc/layers/surface_layer.cc#newcode81 cc/layers/surface_layer.cc:81: if (old_surface_id != new_surface_id) { Hmm. This check is ...
3 years, 7 months ago (2017-05-24 21:57:42 UTC) #19
jaydasika
https://codereview.chromium.org/2905533002/diff/80001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/80001/cc/layers/surface_layer.cc#newcode81 cc/layers/surface_layer.cc:81: if (old_surface_id != new_surface_id) { On 2017/05/24 21:57:42, enne ...
3 years, 7 months ago (2017-05-24 22:12:56 UTC) #20
enne (OOO)
lgtm
3 years, 7 months ago (2017-05-24 22:20:30 UTC) #23
Fady Samuel
https://codereview.chromium.org/2905533002/diff/100001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/100001/cc/layers/surface_layer.cc#newcode128 cc/layers/surface_layer.cc:128: RemoveSurfaceId(fallback_surface_info_); This breaks surface synchronization and surface references because ...
3 years, 7 months ago (2017-05-24 22:31:14 UTC) #24
jaydasika
https://codereview.chromium.org/2905533002/diff/100001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/100001/cc/layers/surface_layer.cc#newcode128 cc/layers/surface_layer.cc:128: RemoveSurfaceId(fallback_surface_info_); On 2017/05/24 22:31:14, Fady Samuel wrote: > This ...
3 years, 7 months ago (2017-05-24 22:43:03 UTC) #25
Fady Samuel
https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc#newcode118 cc/layers/surface_layer.cc:118: const SurfaceId* SurfaceLayer::GetReferencedSurfaceId(LayerTreeHost* new_host) { On 2017/05/24 21:39:54, jaydasika ...
3 years, 7 months ago (2017-05-24 22:46:24 UTC) #26
jaydasika
PTAL https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2905533002/diff/60001/cc/layers/surface_layer.cc#newcode118 cc/layers/surface_layer.cc:118: const SurfaceId* SurfaceLayer::GetReferencedSurfaceId(LayerTreeHost* new_host) { On 2017/05/24 22:46:24, ...
3 years, 6 months ago (2017-05-25 18:00:28 UTC) #31
Fady Samuel
Looks good once the bots are happy.
3 years, 6 months ago (2017-05-25 22:21:41 UTC) #42
jbauman
lgtm
3 years, 6 months ago (2017-05-25 22:29:29 UTC) #46
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/2905533002/160001
3 years, 6 months ago (2017-05-26 04:30:41 UTC) #51
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 04:36:10 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/10be211f21100f7e9a3069cdefff...

Powered by Google App Engine
This is Rietveld 408576698