Request RGBX rather than RGBA

Fixes San Angeles for certain devices.

Bug 13641473

Change-Id: Icb148e1fed15fe56297942475c095e7eb4a11549
This commit is contained in:
Andy McFadden 2014-03-25 14:59:26 -07:00
parent f3f2afd8cc
commit f3ed9a21b8

View File

@ -56,7 +56,7 @@ WindowSurface::WindowSurface() {
sp<SurfaceControl> sc = surfaceComposerClient->createSurface(
String8("Benchmark"), width, height,
PIXEL_FORMAT_RGBA_8888, ISurfaceComposerClient::eOpaque);
PIXEL_FORMAT_RGBX_8888, ISurfaceComposerClient::eOpaque);
if (sc == NULL || !sc->isValid()) {
fprintf(stderr, "Failed to create SurfaceControl\n");
return;