Index: src/gpu/GrTextureProvider.cpp |
diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp |
index c195398917dc828f14c75a7eaa803a94d836db32..cfa6994c4b6d043b616aa335d48613ec11cbdfe0 100644 |
--- a/src/gpu/GrTextureProvider.cpp |
+++ b/src/gpu/GrTextureProvider.cpp |
@@ -107,15 +107,17 @@ GrTexture* GrTextureProvider::internalRefScratchTexture(const GrSurfaceDesc& inD |
return NULL; |
} |
-GrTexture* GrTextureProvider::wrapBackendTexture(const GrBackendTextureDesc& desc) { |
+GrTexture* GrTextureProvider::wrapBackendTexture(const GrBackendTextureDesc& desc, |
+ GrWrapOwnership ownership) { |
if (this->isAbandoned()) { |
return NULL; |
} |
- return fGpu->wrapBackendTexture(desc); |
+ return fGpu->wrapBackendTexture(desc, ownership); |
} |
GrRenderTarget* GrTextureProvider::wrapBackendRenderTarget(const GrBackendRenderTargetDesc& desc) { |
- return this->isAbandoned() ? NULL : fGpu->wrapBackendRenderTarget(desc); |
+ return this->isAbandoned() ? NULL : fGpu->wrapBackendRenderTarget(desc, |
+ kBorrow_GrWrapOwnership); |
} |
void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { |