aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGrPixelRef.cpp
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-02-26 13:20:48 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-26 13:20:48 -0800
commit55f2d2d57f4dd4109aa0c9dab6023373e3b928ec (patch)
tree6254a42add2b1442385ed153c6d1382403392287 /src/gpu/SkGrPixelRef.cpp
parente015c2646f7f553ff10cd6b9783a3f4ededb63bf (diff)
Creating functions for uploading a mipmapped texture.
Diffstat (limited to 'src/gpu/SkGrPixelRef.cpp')
-rw-r--r--src/gpu/SkGrPixelRef.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp
index 6b75e6343c..f61d92e186 100644
--- a/src/gpu/SkGrPixelRef.cpp
+++ b/src/gpu/SkGrPixelRef.cpp
@@ -77,6 +77,7 @@ static SkGrPixelRef* copy_to_new_texture_pixelref(GrTexture* texture, SkColorTyp
desc.fFlags = kRenderTarget_GrSurfaceFlag;
desc.fConfig = SkImageInfo2GrPixelConfig(dstCT, kPremul_SkAlphaType, dstPT);
desc.fTextureStorageAllocator = texture->desc().fTextureStorageAllocator;
+ desc.fIsMipMapped = false;
GrTexture* dst = context->textureProvider()->createTexture(desc, SkBudgeted::kNo, nullptr, 0);
if (nullptr == dst) {