diff options
author | bsalomon <bsalomon@google.com> | 2016-07-19 07:24:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-19 07:24:40 -0700 |
commit | b117ff194ff888ef9107a4797aad053b0d76be30 (patch) | |
tree | f2ede1f27f7d2513450c5ec45856210fef1c11f3 /src/gpu/gl/GrGLGpu.cpp | |
parent | 23c4f1acbcbb72f5a5f380bedc3eed0c1c387a04 (diff) |
Convert readSurfacePixels to use a draw context instead of a texture
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2165523003
Review-Url: https://codereview.chromium.org/2165523003
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 8b9242cd05..ae38ed8779 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -2328,8 +2328,8 @@ bool GrGLGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height, tempDrawInfo->fTempSurfaceDesc.fHeight = height; tempDrawInfo->fTempSurfaceDesc.fSampleCnt = 0; tempDrawInfo->fTempSurfaceDesc.fOrigin = kTopLeft_GrSurfaceOrigin; // no CPU y-flip for TL. - tempDrawInfo->fUseExactScratch = this->glCaps().partialFBOReadIsSlow(); - + tempDrawInfo->fTempSurfaceFit = this->glCaps().partialFBOReadIsSlow() ? SkBackingFit::kExact + : SkBackingFit::kApprox; // For now assume no swizzling, we may change that below. tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); |