aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/VkBackendSurfaceTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/VkBackendSurfaceTest.cpp')
-rw-r--r--tests/VkBackendSurfaceTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/VkBackendSurfaceTest.cpp b/tests/VkBackendSurfaceTest.cpp
index 6b442a9725..3b3a9cec14 100644
--- a/tests/VkBackendSurfaceTest.cpp
+++ b/tests/VkBackendSurfaceTest.cpp
@@ -84,19 +84,6 @@ DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkImageLayoutTest, reporter, ctxInfo) {
backendTexImage.setVkImageLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
REPORTER_ASSERT(reporter, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL == vkTexture->currentLayout());
-#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS
- // Verify that modifying the layout via the old textureHandle sitll works in is reflected in the
- // GrVkTexture and GrBackendTexture.
- GrVkImageInfo* backendInfo = (GrVkImageInfo*)wrappedImage->getTextureHandle(false);
- REPORTER_ASSERT(reporter, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL == backendInfo->fImageLayout);
-
- backendInfo->updateImageLayout(VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
- REPORTER_ASSERT(reporter,
- VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == vkTexture->currentLayout());
- REPORTER_ASSERT(reporter, backendTexImage.getVkImageInfo(&info));
- REPORTER_ASSERT(reporter, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == info.fImageLayout);
-#endif
-
vkTexture->updateImageLayout(initLayout);
REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info));