diff options
author | Greg Daniel <egdaniel@google.com> | 2017-05-02 11:39:10 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-02 16:05:35 +0000 |
commit | a18d2db2fc2f708c4a71315ff21d822976bcabbf (patch) | |
tree | 97d4cb45ec60d694ca2dd5147724181d153ebd8d /tests/VkWrapTests.cpp | |
parent | bb8126dd2e57c6ed6e6613e282f7d739a7187e28 (diff) |
Fix VkWrapTest
Fix current breakage on bots.
Bug: skia:
Change-Id: I4b60ef85d941a179d76cccc1a468aaa6437caddc
Reviewed-on: https://skia-review.googlesource.com/15104
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/VkWrapTests.cpp')
-rw-r--r-- | tests/VkWrapTests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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, |