diff options
author | Brian Salomon <bsalomon@google.com> | 2015-10-19 14:22:51 -0400 |
---|---|---|
committer | Brian Salomon <bsalomon@google.com> | 2015-10-19 14:22:51 -0400 |
commit | 386f2d32044a4de3fc5c547da03d8f1464dd210a (patch) | |
tree | e815866d56ade19863711fd8c82ecaedfd8749a1 | |
parent | 1df5fab3856428a014303396615322d8fffcc065 (diff) |
Upload stretched bmp rather than original after doing CPU stretch for min texture size
BUG=skia:
Review URL: https://codereview.chromium.org/1411323002 .
-rw-r--r-- | src/gpu/GrTextureParamsAdjuster.cpp | 2 |
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) { |