diff options
author | Greg Daniel <egdaniel@google.com> | 2017-04-18 17:12:32 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-18 21:55:10 +0000 |
commit | 7da62b9059f3c1d31624a0e4da96ee5f908f9c12 (patch) | |
tree | fc57f951a4e8c1900311e8a1ffbdbbaf189715c2 /src/gpu/GrResourceProvider.h | |
parent | b712a85aea212cf5bfe5514a4fefc184545a8d3c (diff) |
Plumb GrBackendTexture throughout skia.
Bug: skia:
Change-Id: I1bae6768ee7229818a83ba608035a1f7867e6875
Reviewed-on: https://skia-review.googlesource.com/13645
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.h')
-rw-r--r-- | src/gpu/GrResourceProvider.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h index 676d82febc..c3d96ff803 100644 --- a/src/gpu/GrResourceProvider.h +++ b/src/gpu/GrResourceProvider.h @@ -85,7 +85,10 @@ public: * * @return GrTexture object or NULL on failure. */ - sk_sp<GrTexture> wrapBackendTexture(const GrBackendTextureDesc& desc, + sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex, + GrSurfaceOrigin origin, + GrBackendTextureFlags flags, + int sampleCnt, GrWrapOwnership = kBorrow_GrWrapOwnership); /** @@ -199,7 +202,9 @@ public: * * @return GrRenderTarget object or NULL on failure. */ - sk_sp<GrRenderTarget> wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc& desc); + sk_sp<GrRenderTarget> wrapBackendTextureAsRenderTarget(const GrBackendTexture&, + GrSurfaceOrigin origin, + int sampleCnt); /** * Assigns a unique key to a resource. If the key is associated with another resource that |