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.h | |
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.h')
-rw-r--r-- | src/gpu/GrProxyProvider.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h index 12ff10c005..0500e2f17c 100644 --- a/src/gpu/GrProxyProvider.h +++ b/src/gpu/GrProxyProvider.h @@ -120,30 +120,28 @@ public: /* * Create a texture proxy that wraps a (non-renderable) backend texture. */ - sk_sp<GrTextureProxy> createWrappedTextureProxy(const GrBackendTexture&, GrSurfaceOrigin, - GrWrapOwnership = kBorrow_GrWrapOwnership, - ReleaseProc = nullptr, - ReleaseContext = nullptr); + sk_sp<GrTextureProxy> wrapBackendTexture(const GrBackendTexture&, GrSurfaceOrigin, + GrWrapOwnership = kBorrow_GrWrapOwnership, + ReleaseProc = nullptr, ReleaseContext = nullptr); /* * Create a texture proxy that wraps a backend texture and is both texture-able and renderable */ - sk_sp<GrTextureProxy> createWrappedTextureProxy(const GrBackendTexture&, - GrSurfaceOrigin, - int sampleCnt); + sk_sp<GrTextureProxy> wrapRenderableBackendTexture(const GrBackendTexture&, + GrSurfaceOrigin, + int sampleCnt); /* * Create a render target proxy that wraps a backend rendertarget */ - sk_sp<GrSurfaceProxy> createWrappedRenderTargetProxy(const GrBackendRenderTarget&, - GrSurfaceOrigin); + sk_sp<GrSurfaceProxy> wrapBackendRenderTarget(const GrBackendRenderTarget&, GrSurfaceOrigin); /* - * Create a render target proxy that wraps a backend texture? + * Create a render target proxy that wraps a backend texture */ - sk_sp<GrSurfaceProxy> createWrappedRenderTargetProxy(const GrBackendTexture& tex, - GrSurfaceOrigin origin, - int sampleCnt); + sk_sp<GrSurfaceProxy> wrapBackendTextureAsRenderTarget(const GrBackendTexture& tex, + GrSurfaceOrigin origin, + int sampleCnt); using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>; enum class Textureable : bool { |