diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-02-10 15:38:45 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-02-11 16:31:56 -0700 |
| commit | c81d623d70f2ef929825335ebfc9a90153c5f8b1 (patch) | |
| tree | a9f2043aace7d5b94576f966a2da78556a12e983 /buildAndroid | |
| parent | 5e29489f855a8c6fba84c1e608bfaa5dd58066d1 (diff) | |
| download | usermoji-c81d623d70f2ef929825335ebfc9a90153c5f8b1.tar.xz | |
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.
Diffstat (limited to 'buildAndroid')
| -rw-r--r-- | buildAndroid/jni/Android.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildAndroid/jni/Android.mk b/buildAndroid/jni/Android.mk index bccb6458..ca9294bd 100644 --- a/buildAndroid/jni/Android.mk +++ b/buildAndroid/jni/Android.mk @@ -119,6 +119,7 @@ include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS)
LOCAL_MODULE := VkLayer_unique_objects
LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/unique_objects.cpp
+LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/vk_safe_struct.cpp
LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
LOCAL_C_INCLUDES += $(SRC_DIR)/include \
$(SRC_DIR)/layers \
|
