diff options
author | 2015-06-18 09:12:16 -0700 | |
---|---|---|
committer | 2015-06-18 09:12:17 -0700 | |
commit | 6dc6f5f4a153d33ed91565cb3cd397a310a937d0 (patch) | |
tree | a432ddf0638895a1d1d645876575aa64a9d9d6c7 /tests/GrSurfaceTest.cpp | |
parent | 4c58e085b27c4cd9813ed7cad2388194d1d1f089 (diff) |
Add support for creating texture backed images where Skia will delete the texture.
Review URL: https://codereview.chromium.org/1187523005
Diffstat (limited to 'tests/GrSurfaceTest.cpp')
-rw-r--r-- | tests/GrSurfaceTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/GrSurfaceTest.cpp b/tests/GrSurfaceTest.cpp index 685bf41874..b9bb319210 100644 --- a/tests/GrSurfaceTest.cpp +++ b/tests/GrSurfaceTest.cpp @@ -51,7 +51,8 @@ DEF_GPUTEST(GrSurface, reporter, factory) { backendDesc.fHeight = 256; backendDesc.fSampleCnt = 0; backendDesc.fTextureHandle = 5; - GrSurface* texRT2 = context->textureProvider()->wrapBackendTexture(backendDesc); + GrSurface* texRT2 = context->textureProvider()->wrapBackendTexture( + backendDesc, kBorrow_GrWrapOwnership); REPORTER_ASSERT(reporter, texRT2 == texRT2->asRenderTarget()); REPORTER_ASSERT(reporter, texRT2 == texRT2->asTexture()); REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == |