layers: Prevent layer calls with null dispatches.
Change GetDeviceProcAddr policy such that nullptr are returned for any
entry point which has a nullptr in the dispatch table.
Change-Id: I848a7ad1eadbe45ec2e170359b5acf72347936de
diff --git a/scripts/unique_objects_generator.py b/scripts/unique_objects_generator.py
index 9fd6328..5b5138b 100644
--- a/scripts/unique_objects_generator.py
+++ b/scripts/unique_objects_generator.py
@@ -250,7 +250,7 @@
# Record intercepted procedures
write('// Map of all APIs to be intercepted by this layer', file=self.outFile)
- write('static const std::unordered_map<std::string, void*> name_to_funcptr_map = {', file=self.outFile)
+ write('static std::unordered_map<std::string, void*> name_to_funcptr_map = {', file=self.outFile)
write('\n'.join(self.intercepts), file=self.outFile)
write('};\n', file=self.outFile)
self.newline()