aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-19 07:24:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-19 07:24:40 -0700
commitb117ff194ff888ef9107a4797aad053b0d76be30 (patch)
treef2ede1f27f7d2513450c5ec45856210fef1c11f3 /src/gpu/vk
parent23c4f1acbcbb72f5a5f380bedc3eed0c1c387a04 (diff)
Convert readSurfacePixels to use a draw context instead of a texture
Diffstat (limited to 'src/gpu/vk')
-rw-r--r--src/gpu/vk/GrVkGpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
index e779bac99b..a09a805e3c 100644
--- a/src/gpu/vk/GrVkGpu.cpp
+++ b/src/gpu/vk/GrVkGpu.cpp
@@ -1388,7 +1388,7 @@ bool GrVkGpu::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 = false;
+ tempDrawInfo->fTempSurfaceFit = SkBackingFit::kApprox;
// For now assume no swizzling, we may change that below.
tempDrawInfo->fSwizzle = GrSwizzle::RGBA();