vulkan: Add #ifdef hack to vk_android_native_buffer.h
authorChad Versace <chadversary@chromium.org>
Tue, 29 Aug 2017 21:41:24 +0000 (14:41 -0700)
committerChad Versace <chadversary@chromium.org>
Mon, 18 Sep 2017 21:26:54 +0000 (14:26 -0700)
commitf07ac34e6f3cb61f99009ab9065e1f6a1bc8a945
tree0dd25597c9f8a7e844e9dee1bfa8977acd9f90de
parent5872ccc9ac6034902fa46835df99637ced7ff4c8
vulkan: Add #ifdef hack to vk_android_native_buffer.h

This patch consolidates many potential `#ifdef ANDROID` messes
throughout src/vulkan and src/intel/vulkan into a simple, localized
hack. The hack is an `#ifdef ANDROID` in vk_android_native_buffer.h
that, on non-Android platorms, avoids including the Android platform
headers and typedefs any Android-specific types to void*.

This hack doesn't remove *all* the `#ifdef ANDROID`s in upcoming
patches, but it does remove a lot.

I first tried implementing VK_ANDROID_native_buffer without this hack,
but eventually gave up when the yak shaving became too much.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
include/vulkan/vk_android_native_buffer.h