From b411b3b87dcdfc124f7eec5581d510a5282a8563 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 31 Jul 2015 09:34:24 -0700 Subject: [PATCH] Restore read pixels perf on ANGLE BUG=chromium:513797 Review URL: https://codereview.chromium.org/1265003002 --- src/gpu/gl/GrGLGpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 3eee2f6..ec7b82a 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) { -- 2.7.4