aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorGreg Daniel <egdaniel@google.com>2018-03-29 15:52:23 -0400
committerGreg Daniel <egdaniel@google.com>2018-03-30 15:10:40 +0000
commit27b4acf317851f7388f138a5c833a19cf25d361c (patch)
tree974121bc6d39d148f6dcbc3044199c84d2591ee9 /gn
parent095b25787612050997d3e22f48385b8955943dd3 (diff)
downloadskqp-27b4acf317851f7388f138a5c833a19cf25d361c.tar.gz
Add test for importing AHardwareBuffers in and out of Vulkan.
The general test creates an AHardwareBuffer. Imports into a backend to file with data. And then imports it into another backend to read the HWB and draws it to a surface. We then readback the pixels to make sure they match what we started with. This version of the test tests all combinations of srcBackends (CPU, EGL, Vulkan) with the dst backends (EGL, Vulkan). Also cherry-picks in changes: Add ctor to GrVkAlloc (https://skia-review.googlesource.com/111660) Add testing only helper to flush and sync gpu (https://skia-review.googlesource.com/113122) Bug: skia: Change-Id: I732f371af7f48f5a590fd161021a69cbc6f2583c Reviewed-on: https://skia-review.googlesource.com/117080 Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gn')
-rw-r--r--gn/tests.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/tests.gni b/gn/tests.gni
index b218c5ce4c..66b6637491 100644
--- a/gn/tests.gni
+++ b/gn/tests.gni
@@ -274,6 +274,7 @@ tests_sources = [
"$_tests/UtilsTest.cpp",
"$_tests/VerticesTest.cpp",
"$_tests/VkClearTests.cpp",
+ "$_tests/VkHardwareBufferTest.cpp",
"$_tests/VkHeapTests.cpp",
"$_tests/VkMakeCopyPipelineTest.cpp",
"$_tests/VkUploadPixelsTests.cpp",