I found the reason why all icons go black when new pixel format is
chosen.
If you define new 32bit pixel format in libpixelflinger/format.cpp,
and use it in framebuffer, you have to find all places hardcoded with
PIXEL_FORMAT_RGBA_8888 and format switch cases, and add your format
there.
One place in particular gave me trouble, SurfaceFlinger.cpp:
createNormalSurfaceLocked returns hardcoded RGBA. When replaced by new
format there all icons go black because of skia format conversion in
com_google_android_gles_jni_EGLImpl.cpp and android_view_Surface.cpp
so watch out for those spots.
Although this is fixed, I still have wrong colors with new format, and
Im not sure if problem is big endian, or new color format or both.
On Apr 14, 9:37 am, extrapedestrian <
extra.pedestr...@gmail.com>
wrote:
> No.
>
> I found some more info on this thread:
https://groups.google.com/group/android-porting/browse_thread/thread/...