Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index 5987c7000f6e7a216d3f09afee549830da463a89..e2fc6927e8d5b092d55be5f3ea88105e203843cd 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -2306,6 +2306,16 @@ bool GrGLGpu::configToGLFormats(GrPixelConfig config, |
*externalFormat = GR_GL_BGRA; |
*externalType = GR_GL_UNSIGNED_BYTE; |
break; |
+ case kSRGBA_8888_GrPixelConfig: |
+ *internalFormat = GR_GL_SRGB_ALPHA; |
+ *externalFormat = GR_GL_SRGB_ALPHA; |
+ if (getSizedInternalFormat) { |
+ *internalFormat = GR_GL_SRGB8_ALPHA8; |
+ } else { |
+ *internalFormat = GR_GL_SRGB_ALPHA; |
+ } |
+ *externalType = GR_GL_UNSIGNED_BYTE; |
+ break; |
case kRGB_565_GrPixelConfig: |
*internalFormat = GR_GL_RGB; |
*externalFormat = GR_GL_RGB; |