diff options
author | Brian Salomon <bsalomon@google.com> | 2018-03-07 14:39:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-07 20:00:20 +0000 |
commit | 7578f3ecddf62853005782ea7414466d6a62db21 (patch) | |
tree | 87fca02e056baeaf7dd6a41d7328264cd0662a39 /src/gpu/GrProxyProvider.cpp | |
parent | af4adefd8ccb46c148f7a16b54afc226b86c0fcc (diff) |
Rename wrap backend tex/rt methods on GrProxyProvider
This makes them more consistent with similar methods on GrResourceProvider.
Change-Id: Ice7e5dbe8100481781015b386445e9b7101bd75e
Reviewed-on: https://skia-review.googlesource.com/112821
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProxyProvider.cpp')
-rw-r--r-- | src/gpu/GrProxyProvider.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/gpu/GrProxyProvider.cpp b/src/gpu/GrProxyProvider.cpp index 536cd137bd..5091228a60 100644 --- a/src/gpu/GrProxyProvider.cpp +++ b/src/gpu/GrProxyProvider.cpp @@ -399,12 +399,11 @@ sk_sp<GrTextureProxy> GrProxyProvider::createProxy(const GrSurfaceDesc& desc, new GrTextureProxy(copyDesc, origin, mipMapped, fit, budgeted, flags)); } -sk_sp<GrTextureProxy> GrProxyProvider::createWrappedTextureProxy( - const GrBackendTexture& backendTex, - GrSurfaceOrigin origin, - GrWrapOwnership ownership, - ReleaseProc releaseProc, - ReleaseContext releaseCtx) { +sk_sp<GrTextureProxy> GrProxyProvider::wrapBackendTexture(const GrBackendTexture& backendTex, + GrSurfaceOrigin origin, + GrWrapOwnership ownership, + ReleaseProc releaseProc, + ReleaseContext releaseCtx) { if (this->isAbandoned()) { return nullptr; } @@ -456,9 +455,8 @@ sk_sp<GrTextureProxy> GrProxyProvider::createWrappedTextureProxy( return proxy; } -sk_sp<GrTextureProxy> GrProxyProvider::createWrappedTextureProxy(const GrBackendTexture& backendTex, - GrSurfaceOrigin origin, - int sampleCnt) { +sk_sp<GrTextureProxy> GrProxyProvider::wrapRenderableBackendTexture( + const GrBackendTexture& backendTex, GrSurfaceOrigin origin, int sampleCnt) { if (this->isAbandoned()) { return nullptr; } @@ -513,9 +511,8 @@ sk_sp<GrTextureProxy> GrProxyProvider::createWrappedTextureProxy(const GrBackend return proxy; } -sk_sp<GrSurfaceProxy> GrProxyProvider::createWrappedRenderTargetProxy( - const GrBackendRenderTarget& backendRT, - GrSurfaceOrigin origin) { +sk_sp<GrSurfaceProxy> GrProxyProvider::wrapBackendRenderTarget( + const GrBackendRenderTarget& backendRT, GrSurfaceOrigin origin) { if (this->isAbandoned()) { return nullptr; } @@ -565,10 +562,8 @@ sk_sp<GrSurfaceProxy> GrProxyProvider::createWrappedRenderTargetProxy( return proxy; } -sk_sp<GrSurfaceProxy> GrProxyProvider::createWrappedRenderTargetProxy( - const GrBackendTexture& backendTex, - GrSurfaceOrigin origin, - int sampleCnt) { +sk_sp<GrSurfaceProxy> GrProxyProvider::wrapBackendTextureAsRenderTarget( + const GrBackendTexture& backendTex, GrSurfaceOrigin origin, int sampleCnt) { if (this->isAbandoned()) { return nullptr; } |