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:
parent
1df5fab385
commit
386f2d3204
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user