Index: src/gpu/GrResourceProvider.cpp |
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp |
index 19fa1cfbb69c62f5fc29ae02f4378946239d6dbd..79146d09113c37170a75bd9e025b0fc76b193970 100644 |
--- a/src/gpu/GrResourceProvider.cpp |
+++ b/src/gpu/GrResourceProvider.cpp |
@@ -227,4 +227,11 @@ GrStencilAttachment* GrResourceProvider::attachStencilAttachment(GrRenderTarget* |
return rt->renderTargetPriv().getStencilAttachment(); |
} |
+GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( |
+ const GrBackendTextureDesc& desc, GrWrapOwnership ownership) { |
+ if (this->isAbandoned()) { |
+ return nullptr; |
+ } |
+ return this->gpu()->wrapBackendTextureAsRenderTarget(desc, ownership); |
+} |