layers: Update unique_objects to make use of safe_structs
authorTobin Ehlis <tobine@google.com>
Wed, 10 Feb 2016 22:38:45 +0000 (15:38 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 11 Feb 2016 23:31:56 +0000 (16:31 -0700)
commitc81d623d70f2ef929825335ebfc9a90153c5f8b1
treea9f2043aace7d5b94576f966a2da78556a12e983
parent5e29489f855a8c6fba84c1e608bfaa5dd58066d1
layers: Update unique_objects to make use of safe_structs

Stop overwriting const* data in unique_objects.
Instead, declare local safe_struct copies of data, update that
data in place with unwrapped objects, and pass down the local
safe_struct copy, which spoofs the original struct layout.

This includes code to build the layer using vk_safe_struct.h/cpp files.
buildAndroid/jni/Android.mk
layers/CMakeLists.txt
layers/unique_objects.h
vk-layer-generate.py