chromium/ui/ozone/platform/wayland/gpu/drm_render_node_path_finder.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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"  // nogncheck

namespace ui {

namespace {

// Drm render node path template.
constexpr char kDriRenderNodeTemplate[] =;

// Number of files to look for when discovering DRM devices.
constexpr uint32_t kDrmMajor =;
constexpr uint32_t kDrmMaxMinor =;
constexpr uint32_t kRenderNodeStart =;
constexpr uint32_t kRenderNodeEnd =;

}  // namespace

DrmRenderNodePathFinder::DrmRenderNodePathFinder() {}

DrmRenderNodePathFinder::~DrmRenderNodePathFinder() = default;

base::FilePath DrmRenderNodePathFinder::GetDrmRenderNodePath() const {}

void DrmRenderNodePathFinder::FindDrmRenderNodePath() {}

}  // namespace ui