Wallpaper Layer Preprocessing for Low-Power Screen Composition
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Large-screen devices experience high power consumption and poor performance due to frequent rotation of wallpaper layers by the GPU, particularly when the screen direction is adjusted, as the GPU needs to perform multiple rotation operations on high-definition wallpapers exceeding the maximum rotation height supported by the hardware composer.
Innovation Solution
A layer composition method for foldable-screen devices that involves pre-processing wallpaper layers when the device is in a folded state and storing them in a buffer, allowing direct hardware composition without additional GPU rotations when the device is unfolded, thereby reducing power consumption and load.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If GPU rotation operations are performed frequently on wallpaper layers, then wallpaper direction consistency is achieved, but power consumption increases
Solution Approach 1:
The system performs preliminary action by pre-processing the wallpaper layer (rotating it by 90 degrees) and storing it in a buffer before actual display is needed. When the screen state changes, the pre-rotated wallpaper is retrieved from the buffer instead of performing rotation operations repeatedly, thereby reducing power consumption while maintaining direction consistency
Solution Approach 2:
The patent creates a copy of the wallpaper layer after rotation and stores it in a buffer. This copy is then reused for subsequent display operations, eliminating the need for repeated GPU rotation operations and reducing overall power consumption
2Adaptability or versatility
If GPU rotation operations are performed repeatedly, then wallpaper adaptation to screen orientation is achieved, but device performance deteriorates
Solution Approach 1:
The system performs the rotation operation once in advance and stores the result in a buffer. Subsequent display operations retrieve the pre-processed wallpaper from the buffer, eliminating repeated GPU operations and improving device performance while maintaining adaptability to different screen orientations
Solution Approach 2:
The patent creates a copied and pre-rotated version of the wallpaper layer that is stored and reused. This copying approach allows the system to maintain adaptability to different screen orientations without repeatedly performing computationally intensive rotation operations, thereby improving performance
3Adaptability or versatility
If wallpaper layer is rotated by GPU, then composition flexibility is achieved, but processing load increases
Solution Approach 1:
The system performs the rotation operation as a preliminary action once, stores the result in a buffer, and then retrieves it for subsequent composition operations. This eliminates repeated GPU processing and reduces overall processing load while maintaining composition flexibility
Solution Approach 2:
The patent creates a copied and pre-rotated wallpaper layer that is stored and reused for multiple composition operations. This copying strategy reduces the processing load by avoiding repeated rotation operations while preserving the flexibility needed for different display configurations
Data Source
Figure 1
Figure 2A
Figure 2B
AI summary
This application provides a layer composition method, a terminal device, and a storage medium, and relates to the field of terminal technologies. In this solution, in a process in which a user uses a large screen, the terminal device may recognize each to-be-composed layer, to determine whether the layer needs to be preprocessed by using a GPU, such as wallpaper layer rotation. If preprocessing needs to be performed by using the GPU, a preprocessed layer is rendered by using the GPU, and the preprocessed layer is stored into a buffer. When a same layer processing task exists subsequently, the preprocessed layer in the buffer can be directly sent to an HWC for hardware composition, without using GPU composition, thereby reducing overall power consumption and load of the terminal device and improving overall performance.