[Operations not supported by hardware acceleration in the]android

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.