Upload stretched bmp rather than original after doing CPU stretch for min texture size

BUG=skia:

Review URL: https://codereview.chromium.org/1411323002 .
This commit is contained in:
Brian Salomon 2015-10-19 14:22:51 -04:00
parent 1df5fab385
commit 386f2d3204

View File

@ -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) {