#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/ozone/platform/wayland/gpu/drm_render_node_path_finder.h"
#include <fcntl.h>
#include <gbm.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "base/files/scoped_file.h"
#include "base/strings/stringprintf.h"
#include "ui/gfx/linux/scoped_gbm_device.h"
namespace ui {
namespace {
constexpr char kDriRenderNodeTemplate[] = …;
constexpr uint32_t kDrmMajor = …;
constexpr uint32_t kDrmMaxMinor = …;
constexpr uint32_t kRenderNodeStart = …;
constexpr uint32_t kRenderNodeEnd = …;
}
DrmRenderNodePathFinder::DrmRenderNodePathFinder() { … }
DrmRenderNodePathFinder::~DrmRenderNodePathFinder() = default;
base::FilePath DrmRenderNodePathFinder::GetDrmRenderNodePath() const { … }
void DrmRenderNodePathFinder::FindDrmRenderNodePath() { … }
}