aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2015-10-19 14:22:51 -0400
committerGravatar Brian Salomon <bsalomon@google.com>2015-10-19 14:22:51 -0400
commit386f2d32044a4de3fc5c547da03d8f1464dd210a (patch)
treee815866d56ade19863711fd8c82ecaedfd8749a1
parent1df5fab3856428a014303396615322d8fffcc065 (diff)
Upload stretched bmp rather than original after doing CPU stretch for min texture size
-rw-r--r--src/gpu/GrTextureParamsAdjuster.cpp2
1 files changed, 1 insertions, 1 deletions
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<GrTexture> original(this->refOriginalTexture(ctx));
if (!original) {