diff options
author | 2015-07-31 09:34:24 -0700 | |
---|---|---|
committer | 2015-07-31 09:34:24 -0700 | |
commit | b411b3b87dcdfc124f7eec5581d510a5282a8563 (patch) | |
tree | 837670d0cf0f364c84ba1b394f0c3a594f12808f /src/gpu | |
parent | 96a52c8c64346baf49425f1d9e6bb2a1dc09a5cb (diff) |
Restore read pixels perf on ANGLE
BUG=chromium:513797
Review URL: https://codereview.chromium.org/1265003002
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 3eee2f6dfc..ec7b82aa8d 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) { |