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

Commit e0055077 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "composer: release fence can be null"

parents fcc5f633 dc6dd699
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -56,7 +56,7 @@ interface IComposerClient {
  int getMaxVirtualDisplayCount();
  int getMaxVirtualDisplayCount();
  android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display);
  android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display);
  android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display);
  android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display);
  ParcelFileDescriptor getReadbackBufferFence(long display);
  @nullable ParcelFileDescriptor getReadbackBufferFence(long display);
  android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode);
  android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode);
  android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display);
  android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display);
  void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback);
  void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback);
@@ -69,7 +69,7 @@ interface IComposerClient {
  void setDisplayBrightness(long display, float brightness);
  void setDisplayBrightness(long display, float brightness);
  void setDisplayedContentSamplingEnabled(long display, boolean enable, android.hardware.graphics.composer3.FormatColorComponent componentMask, long maxFrames);
  void setDisplayedContentSamplingEnabled(long display, boolean enable, android.hardware.graphics.composer3.FormatColorComponent componentMask, long maxFrames);
  void setPowerMode(long display, android.hardware.graphics.composer3.PowerMode mode);
  void setPowerMode(long display, android.hardware.graphics.composer3.PowerMode mode);
  void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence);
  void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in @nullable ParcelFileDescriptor releaseFence);
  void setVsyncEnabled(long display, boolean enabled);
  void setVsyncEnabled(long display, boolean enabled);
  const int EX_BAD_CONFIG = 1;
  const int EX_BAD_CONFIG = 1;
  const int EX_BAD_DISPLAY = 2;
  const int EX_BAD_DISPLAY = 2;
+8 −5
Original line number Original line Diff line number Diff line
@@ -479,7 +479,7 @@ interface IComposerClient {
     *   getReadbackBufferAttributes
     *   getReadbackBufferAttributes
     *   setReadbackBuffer
     *   setReadbackBuffer
     */
     */
    ParcelFileDescriptor getReadbackBufferFence(long display);
    @nullable ParcelFileDescriptor getReadbackBufferFence(long display);


    /**
    /**
     * Returns the render intents supported by the specified display and color
     * Returns the render intents supported by the specified display and color
@@ -702,13 +702,15 @@ interface IComposerClient {
     * This buffer must have been allocated as described in
     * This buffer must have been allocated as described in
     * getReadbackBufferAttributes and is in the dataspace provided by the same.
     * getReadbackBufferAttributes and is in the dataspace provided by the same.
     *
     *
     * Also provides a file descriptor referring to a release sync fence
     * object, which must be signaled when it is safe to write to the readback
     * buffer. If it is already safe to write to the readback buffer, null may be passed instead.
     *
     * If there is hardware protected content on the display at the time of the next
     * If there is hardware protected content on the display at the time of the next
     * composition, the area of the readback buffer covered by such content must be
     * composition, the area of the readback buffer covered by such content must be
     * completely black. Any areas of the buffer not covered by such content may
     * completely black. Any areas of the buffer not covered by such content may
     * optionally be black as well.
     * optionally be black as well.
     *
     *
     * The release fence file descriptor provided works identically to the one
     * described for setOutputBuffer.
     *
     *
     * This function must not be called between any call to validateDisplay and a
     * This function must not be called between any call to validateDisplay and a
     * subsequent call to presentDisplay.
     * subsequent call to presentDisplay.
@@ -716,7 +718,8 @@ interface IComposerClient {
     * Parameters:
     * Parameters:
     * @param display - the display on which to create the layer.
     * @param display - the display on which to create the layer.
     * @param buffer - the new readback buffer
     * @param buffer - the new readback buffer
     * @param releaseFence - a sync fence file descriptor as described in setOutputBuffer
     * @param releaseFence - a sync fence file descriptor as described above or null if it is
     *                       already safe to write to the readback buffer.
     *
     *
     * @exception EX_BAD_DISPLAY - an invalid display handle was passed in
     * @exception EX_BAD_DISPLAY - an invalid display handle was passed in
     * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid
     * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid
@@ -726,7 +729,7 @@ interface IComposerClient {
     *   getReadbackBufferFence
     *   getReadbackBufferFence
     */
     */
    void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer,
    void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer,
            in ParcelFileDescriptor releaseFence);
            in @nullable ParcelFileDescriptor releaseFence);


    /**
    /**
     * Enables or disables the vsync signal for the given display. Virtual
     * Enables or disables the vsync signal for the given display. Virtual