diff options
author | Jesse Hall <jessehall@google.com> | 2013-08-16 07:50:11 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2013-08-16 07:50:11 -0700 |
commit | bc2a90b024db82e3a277e5b366da17e00b21d98b (patch) | |
tree | 7e7e63e795a2e13d6065209e2702e27c61401a2e /opengl | |
parent | e048a4374c4e355c361f5eec0482ac85df0c73fe (diff) | |
download | frameworks_native-bc2a90b024db82e3a277e5b366da17e00b21d98b.zip frameworks_native-bc2a90b024db82e3a277e5b366da17e00b21d98b.tar.gz frameworks_native-bc2a90b024db82e3a277e5b366da17e00b21d98b.tar.bz2 |
Replace sRGB_888 with sRGB_X_8888
Bug: 10357459
Change-Id: I3a1d92cce2c9d3e930408129fb20887276fffddc
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index c01725d..a81c450 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -380,14 +380,14 @@ static int modifyFormatColorspace(int fmt, EGLint colorspace) { if (colorspace == EGL_GL_COLORSPACE_LINEAR_KHR) { switch (fmt) { case HAL_PIXEL_FORMAT_sRGB_A_8888: return HAL_PIXEL_FORMAT_RGBA_8888; - case HAL_PIXEL_FORMAT_sRGB_888: return HAL_PIXEL_FORMAT_RGB_888; + case HAL_PIXEL_FORMAT_sRGB_X_8888: return HAL_PIXEL_FORMAT_RGBX_8888; } } else if (colorspace == EGL_GL_COLORSPACE_SRGB_KHR) { switch (fmt) { case HAL_PIXEL_FORMAT_RGBA_8888: return HAL_PIXEL_FORMAT_sRGB_A_8888; - case HAL_PIXEL_FORMAT_RGBX_8888: return HAL_PIXEL_FORMAT_sRGB_A_8888; + case HAL_PIXEL_FORMAT_RGBX_8888: return HAL_PIXEL_FORMAT_sRGB_X_8888; + // TODO: this should go away once drivers stop using BGRA EGLConfigs case HAL_PIXEL_FORMAT_BGRA_8888: return HAL_PIXEL_FORMAT_sRGB_A_8888; - case HAL_PIXEL_FORMAT_RGB_888: return HAL_PIXEL_FORMAT_sRGB_888; } } return fmt; |