The application discloses a multi-window rendering optimization method for containerized Hongmeng applications, a window
adaptation layer is built on the host side to realize instruction conversion from the container side to the host side, when the Hongmeng application Ability is started, the container side analyzes a rendering mode to generate a structure body containing full-quantity attributes of a window and sends the structure body to the host side, the
adaptation layer creates a corresponding native window to establish a mapping between the Hongmeng window and the host window, a Mesa compatible buffer
pool is initialized for the window according to the rendering mode, when the application initiates a frame buffer creation request, the host side allocates an idle buffer from a corresponding buffer
pool, the container side establishes a mapping between a virtual frame buffer object and a host side buffer, when the Hongmeng application submits a display, the container side exports a cross-container sharing
handle of a rendering buffer to send buffer data to the host side, after the host side imports the sharing
handle, a GPU buffer is bound to a target window surface to submit a refresh request, a compositor composes application rendering content and native window decorations and sends the same to a
display device to complete on-screen display.