From 386f2d32044a4de3fc5c547da03d8f1464dd210a Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 19 Oct 2015 14:22:51 -0400 Subject: Upload stretched bmp rather than original after doing CPU stretch for min texture size BUG=skia: Review URL: https://codereview.chromium.org/1411323002 . --- src/gpu/GrTextureParamsAdjuster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp index adeec45c8a..eb51e8e081 100644 --- a/src/gpu/GrTextureParamsAdjuster.cpp +++ b/src/gpu/GrTextureParamsAdjuster.cpp @@ -141,7 +141,7 @@ GrTexture* GrTextureParamsAdjuster::generateTextureForParams(GrContext* ctx, return nullptr; } SkBitmap stretchedBmp = copy_on_cpu(bitmap, copyParams); - return GrUploadBitmapToTexture(ctx, bitmap); + return GrUploadBitmapToTexture(ctx, stretchedBmp); } else { SkAutoTUnref original(this->refOriginalTexture(ctx)); if (!original) { -- cgit v1.2.3