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

Commit 36d75491 authored by Romain Guy's avatar Romain Guy
Browse files

Update hardware acceleration doc

Change-Id: I3bed77b3c4e1eff96fa462e4849f25f38784c415
parent 1e878d2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7785,7 +7785,7 @@ package android.gesture {
package android.graphics {
  public class AvoidXfermode extends android.graphics.Xfermode {
  public deprecated class AvoidXfermode extends android.graphics.Xfermode {
    ctor public AvoidXfermode(int, int, android.graphics.AvoidXfermode.Mode);
  }
@@ -8564,7 +8564,7 @@ package android.graphics {
    field public int bytesPerPixel;
  }
  public class PixelXorXfermode extends android.graphics.Xfermode {
  public deprecated class PixelXorXfermode extends android.graphics.Xfermode {
    ctor public PixelXorXfermode(int);
  }
+28 −0
Original line number Diff line number Diff line
@@ -300,6 +300,16 @@ changed.</li>
        <li>{@link android.graphics.Paint#setRasterizer setRasterizer()}</li>
      </ul>
    </li>

    <li>
      <strong>Xfermodes</strong>

      <ul>
        <li>{@link android.graphics.AvoidXfermode AvoidXfermode}</li>

        <li>{@link android.graphics.PixelXorXfermode PixelXorXfermode}</li>
      </ul>
    </li>
  </ul>

  <p>In addition, some operations behave differently with hardware acceleration enabled:</p>
@@ -335,6 +345,24 @@ changed.</li>
      </ul>
    </li>

    <li>
      <strong>PorterDuffXfermode</strong>

      <ul>
        <li>{@link android.graphics.PorterDuff.Mode#DARKEN PorterDuff.Mode.DARKEN} will
        be equivalent to {@link android.graphics.PorterDuff.Mode#SRC_OVER} when blending
        against the framebuffer.</li>

        <li>{@link android.graphics.PorterDuff.Mode#LIGHTEN PorterDuff.Mode.LIGHTEN} will
        be equivalent to {@link android.graphics.PorterDuff.Mode#SRC_OVER} when blending
        against the framebuffer.</li>

        <li>{@link android.graphics.PorterDuff.Mode#OVERLAY PorterDuff.Mode.OVERLAY} will
        be equivalent to {@link android.graphics.PorterDuff.Mode#SRC_OVER} when blending
        against the framebuffer.</li>
      </ul>
    </li>

    <li>
      <strong>ComposeShader</strong>

+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ package android.graphics;
 * AvoidXfermode xfermode will draw the src everywhere except on top of the
 * opColor or, depending on the Mode, draw only on top of the opColor.
 */
@Deprecated
public class AvoidXfermode extends Xfermode {

    // these need to match the enum in SkAvoidXfermode.h on the native side
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ package android.graphics;
 * this mode *always* returns an opaque color (alpha == 255). Thus it is
 * not really usefull for operating on blended colors.
 */
@Deprecated
public class PixelXorXfermode extends Xfermode {

    public PixelXorXfermode(int opColor) {