template <>
class WireServer
Defined at line 8486 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_ui_composition::Screenshot>|
and |::fidl::ServerEnd
<
::fuchsia_ui_composition::Screenshot>|).
Public Methods
void Take (::fuchsia_ui_composition::wire::ScreenshotTakeRequest * request, TakeCompleter::Sync & completer)
Collects the current graphical content of a display in a specified buffer `format` in the
sRGB color space. Note that the sRGB color space is non-linear, meaning that unit tests
doing pixel equality checks making use of non-fully saturated colors should convert to a
linear color space.
See https://fuchsia.dev/fuchsia-src/concepts/ui/scenic/color_spaces for more information.
Screenshot is taken immediately, populated with the display's content from the most recent
VSYNC.
If the client calls [`Take`] a second time before a first [`Take`] call returns, the server
will close the Screenshot connection with a ZX_ERR_SHOULD_WAIT epitaph.
If capture fails due to an internal error, the server will close the Screenshot connection
with a ZX_ERR_INTERNAL epitaph.
void TakeFile (::fuchsia_ui_composition::wire::ScreenshotTakeFileRequest * request, TakeFileCompleter::Sync & completer)
Collects the current graphical content of a display in a specified buffer `format` in the
sRGB color space. Note that the sRGB color space is non-linear, meaning that unit tests
doing pixel equality checks making use of non-fully saturated colors should convert to a
linear color space.
TODO(https://fxbug.dev/42065844): Link to fuchsia.dev documentation when it's up.
Screenshot is taken immediately, populated with the display's content from the most recent
VSYNC.
If the client calls [`TakeFile`] a second time before a first [`TakeFile`] call returns,
the server will close the Screenshot connection with a ZX_ERR_SHOULD_WAIT epitaph.
If capture fails due to an internal error, the server will close the Screenshot connection
with a ZX_ERR_INTERNAL epitaph.
This call should be used if the client is on the host and does not support VMOs,
as is the case for ffx tools.
void WireServer ()
Defined at line 8489 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 8490 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/wire_messaging.h