0
Files
src/components/capture_mode
Daniel Cheng 2e6a5affd5 Encapsulate access to GpuMemoryBufferHandle's shared memory region
The shared memory region is only used for SHARED_MEMORY_BUFFER and
DXGI_SHARED_HANDLE. Encapsulating this makes it a bit harder to
accidentally violate invariants, but more importantly, simplifies
followup work to fix the typemaps for DXGIHandle. After this, all the
DXGIHandle state, including its associated shared memory region, can be
separated out and grouped together in a C++ class that can be typemapped
for Mojo, while code that blithely uses the GpuMemoryBufferHandle's
shared memory region can do so in a slightly more type-safe way.

Bug: 40584691
Bug: 392931078
Change-Id: Ifd1a2631e8e74e697a0ae97ec0b2e69889078039
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6218401
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: vikas soni <vikassoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414182}
2025-01-31 09:13:16 -08:00
..