After you turn on hardware acceleration, the 2D rendering pipeline in Android supports most commonly used canvas painting operations functions and those that are rarely used. All of the painting operations, default parts and layouts, and common advanced visuals (such as reflections and textures) that are used to present applications in Android are supported. The following list is known for operations that are not supported by hardware acceleration:
* Canvas
* * Clippath ()
* * Clipregion ()
* * Drawpicture ()
* * Drawtextonpath ()
* * DrawVertices ()
* Paint
* * Setlineartext ()
* * Setmaskfilter ()
* * Setrasterizer ()
* Xfermodes
* * Avoidxfermode
* * Pixelxorxfermode
Also, some of the effects of operations change after hardware acceleration.
* Canvas
* * ClipRect (): XOR, Difference and reversedifference These three cropping modes are ignored. 3D conversion does not apply to trim rectangles
* * Drawbitmapmesh (): color matrix ignored
* Paint
* * Setdither (): Ignored
* * SETFILTERBITMAP (): Filter is always on
* Setshadowlayer (): Can only be used with text
* Porterduffxfermode
* * PorterDuff.Mode.DARKEN equivalent to SRC_ Over if the frame buffer does not support blending
* * PorterDuff.Mode.LIGHTEN equivalent to Src_over if the frame buffer does not support blending
* * PorterDuff.Mode.OVERLAY equivalent to Src_over if the frame buffer does not support blending
* Composeshader
* * Composeshader can only contain different types of shaders (for example, an instance containing a bitmapshader and an instance of LinearGradient is allowed, but an instance with two Bitmapshader is not possible)
* * Composeshader cannot contain a composeshader
If your application uses the above unsupported or restricted operation, you can turn off hardware acceleration by calling Setlayertype (View.layer_type_software, NULL) in the View that uses the above operation. This way, your program can still enjoy the benefits of hardware acceleration in other places.
[Operations not supported by hardware acceleration in the]android