I'm working on a project that involves reading the content of a layer that is to be composited by the surfaceflinger.
I specifically need to check whether the layer to be composited is all 1-bits 0r all 0-bits.
This is to apply some optimizations before composition by the SurfaceFlinger.
I tracked the creation of the buffers via adb-logcat(by adding my own log messages) but couldn't find a way to read the actual contents of the layer.
Could anyone tell me if this is even possible, and if it is, how?