Merge "Update hardware acceleration doc"

This commit is contained in:
Romain Guy
2012-01-23 16:27:50 -08:00
committed by Android (Google) Code Review
4 changed files with 32 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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>

View File

@@ -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

View File

@@ -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) {