Android GUI system Surfaceflinger (one) surfacecomposerclient

Source: Internet
Author: User

1.1.1 Surfacecomposerclient

Figure 11?28 Each application corresponds to a client in the Surfaceflinger

Surfaceflinger runs in the systemserver system process, applications that require a UI interface to communicate across processes through the binder service. In the study of audio system, each audiotrack can find a corresponding track implementation in Audioflinger. This design approach also applies to display systems where any program with a UI interface is available in Surfaceflinger and has only one client instance.

The class name of the client does not fully express its meaning, because in many other parts of the Android system you can find classes with the same name. The interface between applications and Surfaceflinger is the Isurfacecomposerclient,client parent class is bnsurfacecomposerclient, which is the local-side implementation of this interface.

/*frameworks/native/include/gui/isurfacecomposerclient.h*/

Class Isurfacecomposerclient:public IInterface

{ ...

Virtual Sp<isurface>createsurface (surface_data_t* data, const string8& name, Displayiddisplay,

uint32_t w,uint32_t H, pixelformat format, uint32_t flags) = 0;

Virtual status_t destroysurface (surfaceid sid) = 0;

};

Related Article

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.