class SysmemAllocator

Defined at line 24 of file ../../src/camera/bin/device/sysmem_allocator.h

Public Methods

const fuchsia::sysmem2::AllocatorPtr & fidl ()

Defined at line 28 of file ../../src/camera/bin/device/sysmem_allocator.h

void SysmemAllocator (fuchsia::sysmem2::AllocatorHandle allocator)

Defined at line 84 of file ../../src/camera/bin/usb_device/sysmem_allocator.cc

fpromise::promise<BufferCollectionWithLifetime, zx_status_t> BindSharedCollection (fuchsia::sysmem2::BufferCollectionTokenHandle token, fuchsia::sysmem2::BufferCollectionConstraints constraints, std::string name)

This method will bind `token` to a new `BufferCollection` and `name` and `constraints` will

be set on the collection. Upon a successful allocation, the collection will be closed and

the `BufferCollectionInfo_2` will be returned by the promise. It does not check for free space

before allocation.

An error is returned from the promise if the allocation is unable to complete for any reason.

Defined at line 87 of file ../../src/camera/bin/usb_device/sysmem_allocator.cc