From a18d2db2fc2f708c4a71315ff21d822976bcabbf Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 2 May 2017 11:39:10 -0400 Subject: Fix VkWrapTest Fix current breakage on bots. Bug: skia: Change-Id: I4b60ef85d941a179d76cccc1a468aaa6437caddc Reviewed-on: https://skia-review.googlesource.com/15104 Reviewed-by: Greg Daniel Commit-Queue: Greg Daniel --- tests/VkWrapTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/VkWrapTests.cpp b/tests/VkWrapTests.cpp index fc19bb33ef..c2edae41ff 100644 --- a/tests/VkWrapTests.cpp +++ b/tests/VkWrapTests.cpp @@ -61,6 +61,7 @@ void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) { // alloc is null backendCopy.fImage = imageInfo->fImage; backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0, 0 }; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kNone_GrBackendTextureFlag, @@ -75,6 +76,7 @@ void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) { REPORTER_ASSERT(reporter, !tex); // check adopt creation backendCopy.fAlloc = imageInfo->fAlloc; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kNone_GrBackendTextureFlag, @@ -153,6 +155,7 @@ void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) { // alloc is null backendCopy.fImage = imageInfo->fImage; backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0, 0 }; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kRenderTarget_GrBackendTextureFlag, @@ -168,6 +171,7 @@ void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) { // check adopt creation backendCopy.fAlloc = imageInfo->fAlloc; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kRenderTarget_GrBackendTextureFlag, -- cgit v1.2.3