Application Surface Masking Without IPC Frame Loss
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The Android system's multi-window function is prone to display frame loss due to time-consuming inter-process communication when adjusting application window dimensions, affecting the viewing experience.
Innovation Solution
Obtain rendering data and transformation coefficients for application surfaces in real-time user interactions, allowing display data to be adjusted using these coefficients without inter-process communication, thereby reducing communication time and mitigating display frame loss.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the Android system loads a picture through View or displays different surfaces to realize a masking function by relying on a System Server process, then the masking function is achieved, but inter-process communication is needed which is time-consuming and causes display frame loss
Solution Approach 1:
The patent extracts the masking layer generation process from the System Server process and relocates it to the application process itself. The rendering resource is obtained directly from the application process without needing to go through the System Server, thereby eliminating the inter-process communication overhead while maintaining the masking function.
Solution Approach 2:
The patent introduces a surface controller as an intermediary component that manages the rendering resource acquisition process. The surface controller obtains the rendering resource from the application process and passes it to the masking layer generator, creating a new communication path that avoids the bottleneck of System Server inter-process communication.
2Reliability
If the Android system loads a picture through View or displays different surfaces to realize a masking function, then the masking function is achieved, but display frame loss occurs affecting viewing experience
Solution Approach 1:
The patent extracts the rendering resource acquisition from the System Server process and performs it directly within the application process. This extraction eliminates the inter-process communication bottleneck that causes display frame loss, thereby improving display frame rate and viewing experience while maintaining masking functionality.
Solution Approach 2:
The patent performs preliminary actions by obtaining the rendering resource from the application process before it is needed for masking layer generation. This advance preparation ensures that the rendering resource is readily available when needed, preventing display frame loss and improving overall display productivity.
3Reliability
If inter-process communication is used in the System Server process for adding masking layer, then the masking function is realized, but communication time consumption increases
Solution Approach 1:
The patent extracts the rendering resource acquisition process from the System Server and relocates it to the application process. This extraction eliminates the need for time-consuming inter-process communication with the System Server while still achieving the masking function through the surface controller and masking layer generator.
Solution Approach 2:
The patent enables the application process to serve itself by directly obtaining the rendering resource without external assistance from the System Server. The application process self-manages the rendering resource acquisition, reducing communication overhead and time consumption while maintaining the masking function.
Data Source
Figure 1~2
Figure 3~4
Figure 5~6
AI summary
The disclosure relates to a method for obtaining display data, an electronic device, and a storage medium. The method includes: obtaining (11) rendering data corresponding to an application program surface; obtaining (12), in response to detecting an operation of adjusting a dimension of the application program surface, a transformation coefficient corresponding to the application program surface, the transformation coefficient being a scale value between a dimension of the application program surface after adjustment and a dimension before adjustment; and obtaining (13) display data of a corresponding masking layer of the application program surface according to the transformation coefficient and the rendering data. In an example, the display data are obtained by adjusting the rendering data through the transformation coefficient, i.e. inter-process communication is not needed and communication time consumption can be reduced, which is conducive to avoiding or mitigating a phenomenon of display frame loss and improving a viewing experience.