| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index 3eee2f6dfca3ca4893fc603788e626fa337cc0d2..ec7b82aa8d67b2e6ebffaaf83838c2915706772e 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -1772,6 +1772,8 @@ bool GrGLGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
|
|
|
| if (GR_GL_RGBA_8888_PIXEL_OPS_SLOW && kRGBA_8888_GrPixelConfig == readConfig) {
|
| tempDrawInfo->fTempSurfaceDesc.fConfig = kBGRA_8888_GrPixelConfig;
|
| + tempDrawInfo->fSwapRAndB = true;
|
| + ElevateDrawPreference(drawPreference, kGpuPrefersDraw_DrawPreference);
|
| } else if (kMesa_GrGLDriver == this->glContext().driver() &&
|
| GrBytesPerPixel(readConfig) == 4 &&
|
| GrPixelConfigSwapRAndB(readConfig) == srcConfig) {
|
|
|