From 383dd9dc58a142392907a3a975d5f3317cda5288 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 9 Mar 2017 13:39:02 -0500 Subject: [PATCH] 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 Commit-Queue: Brian Osman --- include/private/GrSurfaceProxy.h | 3 +-- src/gpu/GrSurfaceProxy.cpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h index 25a6fb3074..dd06f323fb 100644 --- a/include/private/GrSurfaceProxy.h +++ b/include/private/GrSurfaceProxy.h @@ -184,8 +184,7 @@ public: static sk_sp MakeWrappedBackend( GrContext*, - GrBackendTextureDesc&, - GrWrapOwnership ownership = kBorrow_GrWrapOwnership); + GrBackendTextureDesc&); const GrSurfaceDesc& desc() const { return fDesc; } diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp index f95c312b1b..0c497506e1 100644 --- a/src/gpu/GrSurfaceProxy.cpp +++ b/src/gpu/GrSurfaceProxy.cpp @@ -238,9 +238,8 @@ sk_sp GrSurfaceProxy::MakeDeferred(const GrCaps& caps, } sk_sp GrSurfaceProxy::MakeWrappedBackend(GrContext* context, - GrBackendTextureDesc& desc, - GrWrapOwnership ownership) { - sk_sp tex(context->resourceProvider()->wrapBackendTexture(desc, ownership)); + GrBackendTextureDesc& desc) { + sk_sp tex(context->resourceProvider()->wrapBackendTexture(desc)); return GrSurfaceProxy::MakeWrapped(std::move(tex)); }