layers: Validate device dispatchable objects
authorMark Lobodzinski <mark@lunarg.com>
Mon, 13 Nov 2017 16:38:23 +0000 (09:38 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 15 Nov 2017 17:34:31 +0000 (10:34 -0700)
commit4dd2152a1fb5db933704fdecbcbb07bcf27b3ac1
treec1cf9a836f05d0d3ab0a20d71331ebe0d9da7b27
parent3cbbb655d78ad16fa26ea7f838f0c19a1e2035a8
layers: Validate device dispatchable objects

Device object validation required dereferencing possibly bad device
objects. Moved ownership of device objects to instance objects, and
to search each of the layer_data object lists for a created device
handle matching the our candidate device object.

Change-Id: If5615294c397ff6991d4d21ac75ab58d1b0b0841
layers/object_tracker.h
layers/object_tracker_utils.cpp