Remove unused ownership argument to GrSurfaceProxy::MakeWrappedBackend

This is the last public reference to GrWrapOwnership, so removal paves
the way for moving it to somewhere internal.

BUG=skia:

Change-Id: I876298642ff812452a644c1d2b9519691eac44b9
Reviewed-on: https://skia-review.googlesource.com/9492
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2017-03-09 13:39:02 -05:00 committed by Skia Commit-Bot
parent c2d5bd0117
commit 383dd9dc58
2 changed files with 3 additions and 5 deletions

View File

@ -184,8 +184,7 @@ public:
static sk_sp<GrSurfaceProxy> MakeWrappedBackend(
GrContext*,
GrBackendTextureDesc&,
GrWrapOwnership ownership = kBorrow_GrWrapOwnership);
GrBackendTextureDesc&);
const GrSurfaceDesc& desc() const { return fDesc; }

View File

@ -238,9 +238,8 @@ sk_sp<GrTextureProxy> GrSurfaceProxy::MakeDeferred(const GrCaps& caps,
}
sk_sp<GrSurfaceProxy> GrSurfaceProxy::MakeWrappedBackend(GrContext* context,
GrBackendTextureDesc& desc,
GrWrapOwnership ownership) {
sk_sp<GrTexture> tex(context->resourceProvider()->wrapBackendTexture(desc, ownership));
GrBackendTextureDesc& desc) {
sk_sp<GrTexture> tex(context->resourceProvider()->wrapBackendTexture(desc));
return GrSurfaceProxy::MakeWrapped(std::move(tex));
}