diff options
Diffstat (limited to 'tests/ResourceAllocatorTest.cpp')
-rw-r--r-- | tests/ResourceAllocatorTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ResourceAllocatorTest.cpp b/tests/ResourceAllocatorTest.cpp index 4aa055d431..4c40619c4e 100644 --- a/tests/ResourceAllocatorTest.cpp +++ b/tests/ResourceAllocatorTest.cpp @@ -53,9 +53,9 @@ static sk_sp<GrSurfaceProxy> make_backend(GrContext* context, const ProxyParams& p.fConfig, *backendTexHandle); - sk_sp<GrSurface> tex = context->resourceProvider()->wrapBackendTexture( - backendTex, p.fOrigin, - kBorrow_GrWrapOwnership); + SkASSERT(kDefault_GrSurfaceOrigin != p.fOrigin); + sk_sp<GrSurface> tex = context->resourceProvider()->wrapBackendTexture(backendTex, p.fOrigin, + kBorrow_GrWrapOwnership); return GrSurfaceProxy::MakeWrapped(std::move(tex), p.fOrigin); } |