What does Android Gralloc mean?Ignore can 0028 | Browse 23 times | Report posted on 2017-01-10 10:18 Best Answer
The LCD in Android is a frame buffer device, and the driver uses the processor's LCD controller to set the area of physical memory to video memory,
If you write data to this memory area, it will be displayed on the LCD immediately. Android provides a gralloc module in the HAL,
Encapsulates all the interface of the user layer to the frame buffer device and provides display support to the application through the Surfaceflinger service.
During startup, the system loads the Gralloc module, then opens the frame buffer device, obtains various parameters of the device, and completes the initialization of the Gralloc module.
When the application needs to display the content on the LCD, it is necessary to request a graphics buffer through the Gralloc module, then map the graphics buffer to its own address space and write the content.
When the application no longer needs this graphics buffer, it needs to be freed through the Gralloc module and then the buffer mapping is lifted.
What does Android Gralloc mean?