Android GUI system Surfaceflinger (5) Bufferqueue Internal principle

Source: Internet
Author: User

1.1 Bufferqueue Detailed

We've seen the bufferqueue in the previous section, which is the key to surfacetextureclient implementing the local window. Logically, Bufferqueue should reside in the process of the Surfaceflinger side. The doubts we need to address further are:

Each application can correspond to a few bufferqueue, are they a pair of one, One-to-many or One-to-many?

Who is assigned the drawing space that the application needs?

In the learning of audio systems, we know that Audiotrack and Audioflinger are passed in the form of shared memory, so is the display system similar?

How applications and Surfaceflinger mutually exclusive shared data areas

As with the problems encountered in the audio system, we are faced with the classic "producer-consumer" model. How does the display system reconcile the mutually exclusive access between the two?

The internal principle of 1.1.1 Bufferqueue

First, the inner structure of the lower bufferqueue is parsed, as shown in the following illustration:

Figure 11?12 Bufferqueue Internal variables

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.