aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-07-31 09:34:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-31 09:34:24 -0700
commitb411b3b87dcdfc124f7eec5581d510a5282a8563 (patch)
tree837670d0cf0f364c84ba1b394f0c3a594f12808f /src/gpu
parent96a52c8c64346baf49425f1d9e6bb2a1dc09a5cb (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.cpp2
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) {