ui/ozone/drm: introduce ScopedGbmDevice
A gbm_device must be closed using gbm_destroy_device(); this CL introduces ScopedGbmDevice with a custom deleter that does just that, and uses it in the place where it's needed now -- I'll also use it in crrev.com/c/1635929 imminently. Bug: 970923 Change-Id: I954c1f4bfdf0d6ca8ef91f336eb21fc2d255ee6f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643684 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Reviewed-by:
Daniel Nicoara <dnicoara@chromium.org> Cr-Commit-Position: refs/heads/master@{#666346}
Showing
Please register or sign in to comment