Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index f9cba433c742e29b03951d773a009d2dda0e5a06..2ddf6fc06d20278c0f405c0b6ad4efb9d106715f 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -2560,7 +2560,7 @@ bool GrGLGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height, |
tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); |
tempDrawInfo->fReadConfig = kBGRA_8888_GrPixelConfig; |
ElevateDrawPreference(drawPreference, kGpuPrefersDraw_DrawPreference); |
- } else if (kMesa_GrGLDriver == this->glContext().driver() && |
+ } else if (this->glCaps().rgbaToBgraReadbackConversionsAreSlow() && |
GrBytesPerPixel(readConfig) == 4 && |
GrPixelConfigSwapRAndB(readConfig) == srcConfig && |
this->readPixelsSupported(srcSurface, srcConfig)) { |