Loading graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTarget.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -37,4 +37,5 @@ parcelable ClientTarget { android.hardware.graphics.composer3.Buffer buffer; android.hardware.graphics.common.Dataspace dataspace; android.hardware.graphics.common.Rect[] damage; float hdrSdrRatio = 1.0f; } graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/DisplayRequest.aidl +3 −3 Original line number Diff line number Diff line Loading @@ -37,12 +37,12 @@ parcelable DisplayRequest { long display; int mask; android.hardware.graphics.composer3.DisplayRequest.LayerRequest[] layerRequests; const int FLIP_CLIENT_TARGET = (1 << 0); const int WRITE_CLIENT_TARGET_TO_OUTPUT = (1 << 1); const int FLIP_CLIENT_TARGET = (1 << 0) /* 1 */; const int WRITE_CLIENT_TARGET_TO_OUTPUT = (1 << 1) /* 2 */; @VintfStability parcelable LayerRequest { long layer; int mask; const int CLEAR_CLIENT_TARGET = (1 << 0); const int CLEAR_CLIENT_TARGET = (1 << 0) /* 1 */; } } graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/FormatColorComponent.aidl +4 −4 Original line number Diff line number Diff line Loading @@ -34,8 +34,8 @@ package android.hardware.graphics.composer3; @Backing(type="byte") @VintfStability enum FormatColorComponent { FORMAT_COMPONENT_0 = (1 << 0), FORMAT_COMPONENT_1 = (1 << 1), FORMAT_COMPONENT_2 = (1 << 2), FORMAT_COMPONENT_3 = (1 << 3), FORMAT_COMPONENT_0 = (1 << 0) /* 1 */, FORMAT_COMPONENT_1 = (1 << 1) /* 2 */, FORMAT_COMPONENT_2 = (1 << 2) /* 4 */, FORMAT_COMPONENT_3 = (1 << 3) /* 8 */, } graphics/composer/aidl/android/hardware/graphics/composer3/ClientTarget.aidl +10 −0 Original line number Diff line number Diff line Loading @@ -36,4 +36,14 @@ parcelable ClientTarget { * The surface damage regions. */ Rect[] damage; /** * The HDR/SDR ratio. * Only meaningful for extended_range client targets to communicate the amount of HDR heaedroom * inside the client target. For floating point client targets, this means that for each color * channel the maximum SDR luminance is 1.0, and the maximum display relative luminance is * the hdrSdrRatio. * Note that this ratio is meant to be >= 1.0. */ float hdrSdrRatio = 1.0f; } graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientWriter.h +3 −1 Original line number Diff line number Diff line Loading @@ -83,11 +83,13 @@ class ComposerClientWriter final { } void setClientTarget(int64_t display, uint32_t slot, const native_handle_t* target, int acquireFence, Dataspace dataspace, const std::vector<Rect>& damage) { int acquireFence, Dataspace dataspace, const std::vector<Rect>& damage, float hdrSdrRatio) { ClientTarget clientTargetCommand; clientTargetCommand.buffer = getBufferCommand(slot, target, acquireFence); clientTargetCommand.dataspace = dataspace; clientTargetCommand.damage.assign(damage.begin(), damage.end()); clientTargetCommand.hdrSdrRatio = hdrSdrRatio; getDisplayCommand(display).clientTarget.emplace(std::move(clientTargetCommand)); } Loading Loading
graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTarget.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -37,4 +37,5 @@ parcelable ClientTarget { android.hardware.graphics.composer3.Buffer buffer; android.hardware.graphics.common.Dataspace dataspace; android.hardware.graphics.common.Rect[] damage; float hdrSdrRatio = 1.0f; }
graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/DisplayRequest.aidl +3 −3 Original line number Diff line number Diff line Loading @@ -37,12 +37,12 @@ parcelable DisplayRequest { long display; int mask; android.hardware.graphics.composer3.DisplayRequest.LayerRequest[] layerRequests; const int FLIP_CLIENT_TARGET = (1 << 0); const int WRITE_CLIENT_TARGET_TO_OUTPUT = (1 << 1); const int FLIP_CLIENT_TARGET = (1 << 0) /* 1 */; const int WRITE_CLIENT_TARGET_TO_OUTPUT = (1 << 1) /* 2 */; @VintfStability parcelable LayerRequest { long layer; int mask; const int CLEAR_CLIENT_TARGET = (1 << 0); const int CLEAR_CLIENT_TARGET = (1 << 0) /* 1 */; } }
graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/FormatColorComponent.aidl +4 −4 Original line number Diff line number Diff line Loading @@ -34,8 +34,8 @@ package android.hardware.graphics.composer3; @Backing(type="byte") @VintfStability enum FormatColorComponent { FORMAT_COMPONENT_0 = (1 << 0), FORMAT_COMPONENT_1 = (1 << 1), FORMAT_COMPONENT_2 = (1 << 2), FORMAT_COMPONENT_3 = (1 << 3), FORMAT_COMPONENT_0 = (1 << 0) /* 1 */, FORMAT_COMPONENT_1 = (1 << 1) /* 2 */, FORMAT_COMPONENT_2 = (1 << 2) /* 4 */, FORMAT_COMPONENT_3 = (1 << 3) /* 8 */, }
graphics/composer/aidl/android/hardware/graphics/composer3/ClientTarget.aidl +10 −0 Original line number Diff line number Diff line Loading @@ -36,4 +36,14 @@ parcelable ClientTarget { * The surface damage regions. */ Rect[] damage; /** * The HDR/SDR ratio. * Only meaningful for extended_range client targets to communicate the amount of HDR heaedroom * inside the client target. For floating point client targets, this means that for each color * channel the maximum SDR luminance is 1.0, and the maximum display relative luminance is * the hdrSdrRatio. * Note that this ratio is meant to be >= 1.0. */ float hdrSdrRatio = 1.0f; }
graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientWriter.h +3 −1 Original line number Diff line number Diff line Loading @@ -83,11 +83,13 @@ class ComposerClientWriter final { } void setClientTarget(int64_t display, uint32_t slot, const native_handle_t* target, int acquireFence, Dataspace dataspace, const std::vector<Rect>& damage) { int acquireFence, Dataspace dataspace, const std::vector<Rect>& damage, float hdrSdrRatio) { ClientTarget clientTargetCommand; clientTargetCommand.buffer = getBufferCommand(slot, target, acquireFence); clientTargetCommand.dataspace = dataspace; clientTargetCommand.damage.assign(damage.begin(), damage.end()); clientTargetCommand.hdrSdrRatio = hdrSdrRatio; getDisplayCommand(display).clientTarget.emplace(std::move(clientTargetCommand)); } Loading