diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-02-24 22:51:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-02-24 22:51:17 +0000 |
commit | a123e7688d386aa99df46ed1ea2f79f1f75cffc7 (patch) | |
tree | 7085702422551e1d6b457f94d7e96300ed55f894 /graphics | |
parent | 9f30b47e1629bdfb72c0be1cbdf146003cfe8417 (diff) | |
parent | 88e871b66353803062f1d0ed5d06b176800a35f3 (diff) |
Merge "Actually add DimmingStage to client target properties" into tm-dev
Diffstat (limited to 'graphics')
2 files changed, 16 insertions, 0 deletions
diff --git a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl index c445f30bcd..8fb6933c95 100644 --- a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl +++ b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl @@ -37,4 +37,5 @@ parcelable ClientTargetPropertyWithBrightness { long display; android.hardware.graphics.composer3.ClientTargetProperty clientTargetProperty; float brightness; + android.hardware.graphics.composer3.DimmingStage dimmingStage; } diff --git a/graphics/composer/aidl/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl b/graphics/composer/aidl/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl index d9e4e16788..ba6fe97c3d 100644 --- a/graphics/composer/aidl/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl +++ b/graphics/composer/aidl/android/hardware/graphics/composer3/ClientTargetPropertyWithBrightness.aidl @@ -17,6 +17,7 @@ package android.hardware.graphics.composer3; import android.hardware.graphics.composer3.ClientTargetProperty; +import android.hardware.graphics.composer3.DimmingStage; @VintfStability parcelable ClientTargetPropertyWithBrightness { @@ -35,4 +36,18 @@ parcelable ClientTargetPropertyWithBrightness { * The brightness as described in CommandResultPayload.clientTargetProperty */ float brightness; + + /** + * The stage in which dimming operations should be performed when compositing + * the client target. + * Note that with a COLORIMETRIC RenderIntent, DimmingSpace must be LINEAR. That is, dimming + * is defined to occur in linear space. + * However, some composer implementations may, with other vendor-defined RenderIntents, + * configure their hardware such as image quality adjustments is intended to occur after + * composition. In this scenario, if the dimming operation were applied in linear space, + * then the resulting dimming operation may comepl those image quality adjustments to + * incorrectly alter the gamma curve. To avoid this issue, those implementations must opt to + * dim in gamma space. + */ + DimmingStage dimmingStage; } |