blob: 2a7bb6e5a8655cd5deb050dd5f8ec5b10b5ac098 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_LINUX_SCOPED_GBM_DEVICE_H_
#define UI_GFX_LINUX_SCOPED_GBM_DEVICE_H_
#include <gbm.h>
#include <memory>
namespace ui {
struct GbmDeviceDeleter {
void operator()(gbm_device* device);
};
using ScopedGbmDevice = std::unique_ptr<gbm_device, GbmDeviceDeleter>;
} // namespace ui
#endif // UI_GFX_LINUX_SCOPED_GBM_DEVICE_H_