Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index 6b7416b26bf31cc4e19eeba9d1615f5f67e05a79..53765b15a2b6ef11087e50ca282d1f2df5d341bb 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -540,22 +540,6 @@ sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
-GrTexture* GrDeepCopyTexture(GrTexture* src, SkBudgeted budgeted) { |
- GrContext* ctx = src->getContext(); |
- |
- GrSurfaceDesc desc = src->desc(); |
- GrTexture* dst = ctx->textureProvider()->createTexture(desc, budgeted, nullptr, 0); |
- if (!dst) { |
- return nullptr; |
- } |
- |
- const SkIRect srcR = SkIRect::MakeWH(desc.fWidth, desc.fHeight); |
- const SkIPoint dstP = SkIPoint::Make(0, 0); |
- ctx->copySurface(dst, src, srcR, dstP); |
- ctx->flushSurfaceWrites(dst); |
- return dst; |
-} |
- |
sk_sp<SkImage> SkImage::MakeTextureFromMipMap(GrContext* ctx, const SkImageInfo& info, |
const GrMipLevel* texels, int mipLevelCount, |
SkBudgeted budgeted) { |