aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGreg Daniel <egdaniel@google.com>2018-03-30 17:20:15 -0400
committerGreg Daniel <egdaniel@google.com>2018-03-30 21:25:48 +0000
commita1f8e27f471aeded101351cf38e93db10d29c2c6 (patch)
tree2baf86ccac9c5b8f0b40a5a17e3b4bb6c1128b1e /tests
parent27b4acf317851f7388f138a5c833a19cf25d361c (diff)
downloadplatform_external_skqp-a1f8e27f471aeded101351cf38e93db10d29c2c6.tar.gz
platform_external_skqp-a1f8e27f471aeded101351cf38e93db10d29c2c6.tar.bz2
platform_external_skqp-a1f8e27f471aeded101351cf38e93db10d29c2c6.zip
Fix test when running as Vulkan with src
No-Tree-Checks: true No-Try: true No-Presubmit: true Bug: skia: Change-Id: Ie9d0e0616c71c998d5c23823d3390dba4ab0c767 Reviewed-on: https://skia-review.googlesource.com/117520 Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/VkHardwareBufferTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/VkHardwareBufferTest.cpp b/tests/VkHardwareBufferTest.cpp
index 86f673ebd9..3f529ae775 100644
--- a/tests/VkHardwareBufferTest.cpp
+++ b/tests/VkHardwareBufferTest.cpp
@@ -917,7 +917,7 @@ sk_sp<SkImage> VulkanTestHelper::importHardwareBufferForRead(skiatest::Reporter*
sk_sp<SkSurface> VulkanTestHelper::importHardwareBufferForWrite(skiatest::Reporter* reporter,
AHardwareBuffer* buffer) {
GrVkImageInfo imageInfo;
- if (!this->importHardwareBuffer(reporter, buffer, false, &imageInfo)) {
+ if (!this->importHardwareBuffer(reporter, buffer, true, &imageInfo)) {
return nullptr;
}
@@ -1225,7 +1225,7 @@ DEF_GPUTEST(VulkanHardwareBuffer_EGL_Vulkan, reporter, options) {
}
DEF_GPUTEST(VulkanHardwareBuffer_Vulkan_Vulkan, reporter, options) {
- run_test(reporter, options, SrcType::kEGL, DstType::kVulkan);
+ run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan);
}
DEF_GPUTEST(VulkanHardwareBuffer_CPU_EGL, reporter, options) {
@@ -1237,7 +1237,7 @@ DEF_GPUTEST(VulkanHardwareBuffer_EGL_EGL, reporter, options) {
}
DEF_GPUTEST(VulkanHardwareBuffer_Vulkan_EGL, reporter, options) {
- run_test(reporter, options, SrcType::kEGL, DstType::kEGL);
+ run_test(reporter, options, SrcType::kVulkan, DstType::kEGL);
}
#endif