OSDN Git Service

Use a std::unordered_map to lookup BOs from handles
authorRob Herring <robh@kernel.org>
Thu, 15 Feb 2018 22:15:57 +0000 (16:15 -0600)
committerRob Herring <robh@kernel.org>
Mon, 2 Jul 2018 22:44:01 +0000 (16:44 -0600)
commitf552ac5e246f1e7d2348e4baee16d82faa25e7e7
tree54a6c702f9c52a279239616f98822285615f5284
parent2b61bef10ff3b53b62b8edd8759e1c12c9c6a4d7
Use a std::unordered_map to lookup BOs from handles

Remove the fragile dependency on the handle 'data' pointer and
'data_owner' flag.

This idea is stolen from the CrOS minigbm gralloc implementation.

Signed-off-by: Rob Herring <robh@kernel.org>
gralloc_gbm.cpp