mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 593175, part 2: Use 5-6-5 opaque gfxSharedImageSurfaces on mobile platforms. r=karl a=blocking-fennec
This commit is contained in:
parent
b5f4f77a8e
commit
ab70a6a3a6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user