diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-04-13 12:59:43 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-14 16:43:21 -0600 |
| commit | dcab5c002f0494a9651022c7d0c03bc2e91ce76e (patch) | |
| tree | 11d93dff07e9964fc0617f3245e7887758f85a94 /layers/image.cpp | |
| parent | b4caf1b9c5541899bc987565330bb599f0ad2f61 (diff) | |
| download | usermoji-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
