aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/VkBackendSurfaceTest.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-05-03 16:54:03 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-10 14:44:55 +0000
commitccd4cfc23ebbbecbc6b292359352aad335ad7b73 (patch)
tree88940d88f16be8fe4bd943e0264b4c9f4b531ad7 /tests/VkBackendSurfaceTest.cpp
parentf77db110e1c4d2b813ed40de0cf63f65f84b4b64 (diff)
Remove GrBackendObject and all related functions from Skia.
Bug: skia: Change-Id: I59434b7477c0bc26fd982bd81eb97ab94bbba073 Reviewed-on: https://skia-review.googlesource.com/125822 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
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));