Couldn't you just swizzle the value in whatever shader you use? Or you could use EXT_texture_format_BGRA8888 or APPLE_texture_format_BGRA8888.
Also, an optimized BGRA<->RGBA conversion is about the same cost as a memcpy, so if you have any memcpys you need to do you could possibly replace one with the conversion. On Tue, Jan 22, 2013 at 8:14 AM, Zoltan Herczeg <[email protected]> wrote: > >> Where in WebKit do you experience problems with color conversion? > > As for me WebKit2 transmits BGRA images, which needs to be converted to > RGBA before it is uploaded to a texture on GLES 2.0. These conversions > seems computation heavy for certain animations, and I was wondered whether > do we really need to use BGRA here. It would be nice to invent something > to avoid that. > > Regards, > Zoltan > > > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo/webkit-dev >
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo/webkit-dev

