diff options
author | Robert Phillips <robertphillips@google.com> | 2017-07-27 16:16:25 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-27 22:16:06 +0000 |
commit | 16d8ec66cdce2f30ce89b87066d3ac7a244c460d (patch) | |
tree | c1428954ad363f7e2b6ce13bbb1640911c7a8262 /tests/ResourceAllocatorTest.cpp | |
parent | 713195071dc7bdeddec2d1c9fab9b3720f049f07 (diff) |
Pull non-substantive changes out of omnibus GrSurface CL
https://skia-review.googlesource.com/c/26363 (Remove origin field from GrSurface) is
already too large. This pulls some of the cosmetic changes out for separate review.
Change-Id: I1d8b95522144b2f4cbd916ef38faa3dde6f78087
Reviewed-on: https://skia-review.googlesource.com/27840
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
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); } |