aboutsummaryrefslogtreecommitdiff
path: root/layers/image.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-04-13 12:59:43 -0600
committerTobin Ehlis <tobine@google.com>2016-04-14 16:43:21 -0600
commitdcab5c002f0494a9651022c7d0c03bc2e91ce76e (patch)
tree11d93dff07e9964fc0617f3245e7887758f85a94 /layers/image.cpp
parentb4caf1b9c5541899bc987565330bb599f0ad2f61 (diff)
downloadusermoji-dcab5c002f0494a9651022c7d0c03bc2e91ce76e.tar.xz
layers: Overhaul unique_objects
Unique objects now uses a 64-bit counter as the unique handle returned to the app. It stores an internal mapping of handles to actual object ptrs that are used for all non-dispatchable objects. This virtually eliminates the possibility of having a repeat handle as objects are created and destroyed. All counter increments and map accesses are protected by a mutex.
Diffstat (limited to 'layers/image.cpp')
0 files changed, 0 insertions, 0 deletions