Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e208f4a3 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8185746 from 2d5a3974 to tm-d1-release

Change-Id: I226b0a138e6864233b4a415a12dbeebf2dd7a3e9
parents d5afd374 2d5a3974
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,6 +33,6 @@

package android.hardware.graphics.composer3;
@VintfStability
parcelable Luminance {
  float nits;
parcelable LayerBrightness {
  float brightness;
}
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ parcelable LayerCommand {
  @nullable android.hardware.graphics.common.Rect[] visibleRegion;
  @nullable android.hardware.graphics.composer3.ZOrder z;
  @nullable float[] colorTransform;
  @nullable android.hardware.graphics.composer3.Luminance whitePointNits;
  @nullable android.hardware.graphics.composer3.LayerBrightness brightness;
  @nullable android.hardware.graphics.composer3.PerFrameMetadata[] perFrameMetadata;
  @nullable android.hardware.graphics.composer3.PerFrameMetadataBlob[] perFrameMetadataBlob;
  @nullable android.hardware.graphics.common.Rect[] blockingRegion;
+1 −9
Original line number Diff line number Diff line
@@ -77,15 +77,7 @@ parcelable DisplayCommand {
     * the display brightness, for example when internally switching the display between multiple
     * power modes to achieve higher luminance. In those cases, the underlying display panel's real
     * brightness may not be applied atomically; however, layer dimming when mixing HDR and SDR
     * content must be synchronized.
     *
     * As an illustrative example: suppose two layers have white
     * points of 200 nits and 1000 nits respectively, the old display luminance is 200 nits, and the
     * new display luminance is 1000 nits. If the new display luminance takes two frames to apply,
     * then: In the first frame, there must not be any relative dimming of layers (treat both layers
     * as 200 nits as the maximum luminance of the display is 200 nits). In the second frame, there
     * dimming should be applied to ensure that the first layer does not become perceptually
     * brighter during the transition.
     * content must be synchronized to ensure that there is no user-perceptable flicker.
     *
     * The display luminance must be updated by this command even if there is not pending validate
     * or present command.
+4 −4
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@
package android.hardware.graphics.composer3;

@VintfStability
parcelable Luminance {
parcelable LayerBrightness {
    /**
     * Photometric measure of luminous intensity per unit area of light.
     * Units are nits, or cd/m^2.
     * Brightness of the current layer, ranging from 0 to 1, where 0 is the minimum brightness of
     * the display, and 1 is the current brightness of the display.
     */
    float nits;
    float brightness;
}
+6 −6
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import android.hardware.graphics.common.Point;
import android.hardware.graphics.common.Rect;
import android.hardware.graphics.composer3.Buffer;
import android.hardware.graphics.composer3.Color;
import android.hardware.graphics.composer3.Luminance;
import android.hardware.graphics.composer3.LayerBrightness;
import android.hardware.graphics.composer3.ParcelableBlendMode;
import android.hardware.graphics.composer3.ParcelableComposition;
import android.hardware.graphics.composer3.ParcelableDataspace;
@@ -221,12 +221,12 @@ parcelable LayerCommand {
    @nullable float[] colorTransform;

    /**
     * Sets the desired white point for the layer. This is intended to be used when presenting
     * an SDR layer alongside HDR content. The HDR content will be presented at the display
     * brightness in nits, and accordingly SDR content shall be dimmed to the desired white point
     * provided.
     * Sets the desired brightness for the layer. This is intended to be used for instance when
     * presenting an SDR layer alongside HDR content. The HDR content will be presented at the
     * display brightness in nits, and accordingly SDR content shall be dimmed according to the
     * provided brightness ratio.
     */
    @nullable Luminance whitePointNits;
    @nullable LayerBrightness brightness;

    /**
     * Sets the PerFrameMetadata for the display. This metadata must be used
Loading