template <>
class NaturalSyncClientImpl
Defined at line 734 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/natural_messaging.h
Public Methods
::fidl::Result< ::fuchsia_hardware_goldfish::ControlDevice::CreateColorBuffer2> CreateColorBuffer2 (::fidl::Request< ::fuchsia_hardware_goldfish::ControlDevice::CreateColorBuffer2> request)
Create shared color buffer. Color buffer is automatically freed when
all references to `vmo` have been closed. Fails if VMO is not
associated with goldfish heap memory.
Arguments
Refer to `CreateColorBuffer2Params` for input arguments.
Return value
`res`: `ZX_ERR_ALREADY_EXISTS` if a buffer or color buffer has
already been created for this VMO.
`ZX_ERR_INVALID_ARGS` if arguments are invalid.
(see `CreateColorBuffer2Params`)
Otherwise returns `ZX_OK`.
`hw_address_page_offset`: memory page offset of the buffer's
hardware-mapped memory. For color buffers with HOST_VISIBLE
memory property bits, this value is a non-negative
integer in [0, 4095]. For non-HOST_VISIBLE memory or
failed allocation, this value is negative.
::fidl::Result< ::fuchsia_hardware_goldfish::ControlDevice::CreateBuffer2> CreateBuffer2 (::fidl::Request< ::fuchsia_hardware_goldfish::ControlDevice::CreateBuffer2> request)
Create shared data buffer. Buffer is automatically freed when
all references to `vmo` have been closed. Fails if VMO is not
associated with goldfish heap memory.
Arguments
Refer to `CreateBuffer2Params` for input arguments.
Return value
Error:
- `ZX_ERR_ALREADY_EXISTS` if a buffer or color buffer has
already been created for this VMO.
- `ZX_ERR_INVALID_ARGS` if arguments are invalid.
(see `CreateBuffer2Params`)
`hw_address_page_offset`:
Memory page offset of the buffer's hardware-mapped memory.
For buffers with HOST_VISIBLE memory property bits, this
value is a non-negative integer in [0, 4095]. For
non-HOST_VISIBLE memory, this value is negative.
::fidl::Result< ::fuchsia_hardware_goldfish::ControlDevice::GetBufferHandle> GetBufferHandle (::fidl::Request< ::fuchsia_hardware_goldfish::ControlDevice::GetBufferHandle> request)
Get a buffer handle for VMO and the type of the handle.
Fails if VMO is not associated with neither a color buffer nor a buffer.
Deprecated. Use `GetBufferHandleInfo()` instead.
::fidl::Result< ::fuchsia_hardware_goldfish::ControlDevice::GetBufferHandleInfo> GetBufferHandleInfo (::fidl::Request< ::fuchsia_hardware_goldfish::ControlDevice::GetBufferHandleInfo> request)
Get the info of buffer handle from a given VMO.
Return value
Error:
- `ZX_ERR_INVALID_ARGS` if given `vmo` is invalid.
- `ZX_ERR_NOT_FOUND` if `vmo` is not associated with any created
goldfish Buffer or ColorBuffer.
`info`: a BufferHandleInfo object containing the buffer id, type
and memory information.
::fidl::Result< ::fuchsia_hardware_goldfish::ControlDevice::CreateSyncFence> CreateSyncFence (::fidl::Request< ::fuchsia_hardware_goldfish::ControlDevice::CreateSyncFence> request)
Create a sync fence on goldfish control device. Client pass half of an
eventpair to this method, and `event` will signal its peer when all the
graphics work already queued on the EGL display context associated with
the control device when it is created has finished.
Errors:
- ZX_ERR_INTERNAL if device fail to create the fence or fail to
trigger the wait.