Skip to content

Commit

Permalink
[//gpu] Create GMB in SIIInProcess::CreateSharedImage(BufferUsage)
Browse files Browse the repository at this point in the history
This CL changes the GpuMemoryBuffer associated with a MappableSI from
being created on-demand in SIIInProcess::MapSharedImage() to
SIIInProcess::CreateSharedImage(BufferUsage). This matches the behavior
of ClientSII and smoothes the path for moving GMB ownership into
ClientSharedImage.

Bug: 1500611
Change-Id: Ia9df6f85c8d4acb3bb1dbe8c5259744780f0f3c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5029955
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1224793}
  • Loading branch information
colinblundell authored and Chromium LUCI CQ committed Nov 15, 2023
1 parent bd8f39f commit 0378e88
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ SharedImageInterfaceInProcess::CreateSharedImage(
MakeSyncToken(next_fence_sync_release_++)),
{});
}

// Ensure that the GMB is created. This paves the path for an upcoming CL that
// will have ClientSharedImage own the GMB.
GetGpuMemoryBuffer(mailbox);

return base::MakeRefCounted<ClientSharedImage>(mailbox);
}

Expand Down

0 comments on commit 0378e88

Please sign in to comment.