Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 2127c367444cf86e7e58584556187d6e4368a3d9..60736da5723e430237c6d8b18b60d2831deaf759 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -394,6 +394,14 @@ GrTexture* GrGenerateMipMapsAndUploadToTexture(GrContext* ctx, const SkBitmap& b |
mipLevelCount); |
} |
+GrTexture* GrUploadMipMapToTexture(GrContext* ctx, const SkImageInfo& info, |
+ const GrMipLevel* texels, int mipLevelCount) { |
+ const GrCaps* caps = ctx->caps(); |
+ return ctx->textureProvider()->createMipMappedTexture(GrImageInfoToSurfaceDesc(info, *caps), |
+ SkBudgeted::kYes, texels, |
+ mipLevelCount); |
+} |
+ |
GrTexture* GrRefCachedBitmapTexture(GrContext* ctx, const SkBitmap& bitmap, |
const GrTextureParams& params) { |
if (bitmap.getTexture()) { |