Bug 593175, part 2: Use 5-6-5 opaque gfxSharedImageSurfaces on mobile platforms. r=karl a=blocking-fennec

This commit is contained in:
Doug Turner 2010-09-16 16:24:20 -05:00
parent b5f4f77a8e
commit ab70a6a3a6

View File

@ -363,8 +363,11 @@ OptimalFormatFor(gfxASurface::gfxContentType aContent)
{
switch (aContent) {
case gfxASurface::CONTENT_COLOR:
// FIXME/bug 593175: investigate 16bpp
#ifdef MOZ_GFX_OPTIMIZE_MOBILE
return gfxASurface::ImageFormatRGB16_565;
#else
return gfxASurface::ImageFormatRGB24;
#endif
case gfxASurface::CONTENT_ALPHA:
return gfxASurface::ImageFormatA8;
case gfxASurface::CONTENT_COLOR_ALPHA: