commit | 27b4acf317851f7388f138a5c833a19cf25d361c | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Thu Mar 29 15:52:23 2018 -0400 |
committer | Greg Daniel <egdaniel@google.com> | Fri Mar 30 15:10:40 2018 +0000 |
tree | 974121bc6d39d148f6dcbc3044199c84d2591ee9 | |
parent | 095b25787612050997d3e22f48385b8955943dd3 [diff] |
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>