[webkit-dev] RGBA8 and BGRA8 formats in WebKit

Balazs Kelemen kbalazs at webkit.org
Tue Jan 22 16:03:03 PST 2013

On 01/22/2013 05:14 PM, Zoltan Herczeg 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.

You explained the symptom but not the source of the problem. So, do you 
know _why_ do we have BGRA before the texture upload? If this is a 
software rendered image buffer, why can't we just use the appropriate 
format when doing the software rendering? Anybody?

More information about the webkit-dev mailing list