Commit 63ea4c07 authored by John Bauman's avatar John Bauman Committed by Commit Bot

[Fuchsia] Name OutputPresentFuchsia BufferCollection

This name is passed on to the VMOs and makes it simpler to determine how
much memory is being used by output surfaces. Also add debug client
names to help determine which client failed to set constraints if that
ever happens.

Change-Id: Iff1512c33ca10aa8a57a65e27f3227237a2841dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2476135Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Auto-Submit: John Bauman <jbauman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817593}
parent 6bfe7b30
......@@ -230,11 +230,13 @@ OutputPresenterFuchsia::AllocateImages(gfx::ColorSpace color_space,
// the ImagePipe.
fuchsia::sysmem::BufferCollectionTokenSyncPtr collection_token;
sysmem_allocator_->AllocateSharedCollection(collection_token.NewRequest());
collection_token->SetName(100u, "ChromiumOutput");
collection_token->SetDebugClientInfo("vulkan", 0u);
fidl::InterfaceHandle<fuchsia::sysmem::BufferCollectionToken>
token_for_scenic;
fuchsia::sysmem::BufferCollectionTokenSyncPtr token_for_scenic;
collection_token->Duplicate(ZX_RIGHT_SAME_RIGHTS,
token_for_scenic.NewRequest());
token_for_scenic->SetDebugClientInfo("scenic", 0u);
zx_status_t status = collection_token->Sync();
if (status != ZX_OK) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment