Index: src/gpu/GrYUVProvider.cpp |
diff --git a/src/gpu/GrYUVProvider.cpp b/src/gpu/GrYUVProvider.cpp |
index 844849a57567360157fe14b172291a276d4288d1..f88964184903135f4354a43035a1ec6237502147 100644 |
--- a/src/gpu/GrYUVProvider.cpp |
+++ b/src/gpu/GrYUVProvider.cpp |
@@ -98,7 +98,7 @@ GrTexture* GrYUVProvider::refAsTexture(GrContext* ctx, const GrSurfaceDesc& desc |
bool needsExactTexture = (yuvDesc.fWidth != yuvInfo.fSize[0].fWidth) || |
(yuvDesc.fHeight != yuvInfo.fSize[0].fHeight); |
if (needsExactTexture) { |
- yuvTextures[i].reset(ctx->textureProvider()->createTexture(yuvDesc, true)); |
+ yuvTextures[i].reset(ctx->textureProvider()->createTexture(yuvDesc, SkBudgeted::kYes)); |
} else { |
yuvTextures[i].reset(ctx->textureProvider()->createApproxTexture(yuvDesc)); |
} |
@@ -112,7 +112,8 @@ GrTexture* GrYUVProvider::refAsTexture(GrContext* ctx, const GrSurfaceDesc& desc |
GrSurfaceDesc rtDesc = desc; |
rtDesc.fFlags = rtDesc.fFlags | kRenderTarget_GrSurfaceFlag; |
- SkAutoTUnref<GrTexture> result(ctx->textureProvider()->createTexture(rtDesc, true, nullptr, 0)); |
+ SkAutoTUnref<GrTexture> result(ctx->textureProvider()->createTexture(rtDesc, SkBudgeted::kYes, |
+ nullptr, 0)); |
if (!result) { |
return nullptr; |
} |