Package: android.hardware.graphics.composer@2.1

IComposer

interface IComposer

Properties

Capability

enum Capability: int32_t

Optional capabilities which may be supported by some devices.The particular set of supported capabilities for a given device may be retrieved using getCapabilities.

Details
Members
INVALID = 0
SIDEBAND_STREAM = 1
Specifies that the device supports sideband stream layers, for which buffer content updates and other synchronization will not be provided through the usual validate/present cycle and must be handled by an external implementation-defined mechanism.Only changes to layer state(such as position, size, etc .)need to be performed through the validate/present cycle.
SKIP_CLIENT_COLOR_TRANSFORM = 2
Specifies that the device will apply a color transform even when either the client or the device has chosen that all layers should be composed by the client.This will prevent the client from applying the color transform during its composition step.
PRESENT_FENCE_IS_NOT_RELIABLE = 3
Specifies that the present fence must not be used as an accurate representation of the actual present time of a frame.

Methods

getCapabilities

getCapabilities ()
generates (vec<Capability> capabilities)

Provides a list of supported capabilities(as described in the definition of Capability above). This list must not change after initialization.

Details
Generates
capabilities
is a list of supported capabilities.
Annotations
entry
exit
callflow
next="*"

dumpDebugInfo

dumpDebugInfo ()
generates (string debugInfo)

Retrieves implementation-defined debug information, which will be displayed during, for example, `dumpsys SurfaceFlinger`.

Details
Generates
debugInfo
is a string of debug information.
Annotations
entry
exit
callflow
next="*"

createClient

createClient ()
generates (Error error, IComposerClient client)

Creates a client of the composer.All resources created by the client are owned by the client and are only visible to the client.

There can only be one client at any time.

Details
Generates
error
is NONE upon success.Otherwise, NO_RESOURCES when no more client can be created currently.
client
is the newly created client.
Annotations
entry
callflow
next="*"