Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index ff6f7fa098ed47cd254d82b9f1edafed023e3655..71e19e6c6c024be34bdf425157ec61b38f16fc79 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -366,7 +366,7 @@ static GrTexture* load_yuv_texture(GrContext* ctx, const GrUniqueKey& optionalKe |
yuvDesc.fWidth = yuvInfo.fSize[i].fWidth; |
yuvDesc.fHeight = yuvInfo.fSize[i].fHeight; |
yuvTextures[i].reset( |
- ctx->refScratchTexture(yuvDesc, GrContext::kApprox_ScratchTexMatch)); |
+ ctx->refScratchTexture(yuvDesc, GrContext::kExact_ScratchTexMatch)); |
bsalomon
2015/03/05 16:13:05
Maybe only do this if we will use bilerp? Otherwis
sugoi1
2015/03/05 16:22:35
Done.
|
if (!yuvTextures[i] || |
!yuvTextures[i]->writePixels(0, 0, yuvDesc.fWidth, yuvDesc.fHeight, |
yuvDesc.fConfig, planes[i], yuvInfo.fRowBytes[i])) { |