blob: 3d2f3a00b4e934d73e6cdeebbd8d46b58d69d96f [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_GRAPHICS_BIN_VULKAN_LOADER_GOLDFISH_DEVICE_H_
#define SRC_GRAPHICS_BIN_VULKAN_LOADER_GOLDFISH_DEVICE_H_
#include <fuchsia/hardware/goldfish/cpp/fidl.h>
#include <lib/sys/inspect/cpp/component.h>
#include <string>
#include "src/graphics/bin/vulkan_loader/gpu_device.h"
#include "src/lib/fxl/macros.h"
class LoaderApp;
class GoldfishDevice : public GpuDevice {
public:
static std::unique_ptr<GoldfishDevice> Create(LoaderApp* app, int dir_fd, std::string name,
inspect::Node* parent);
private:
explicit GoldfishDevice(LoaderApp* app) : GpuDevice(app) {}
bool Initialize(int dir_fd, std::string name, inspect::Node* parent);
fuchsia::hardware::goldfish::PipeDevicePtr device_;
FXL_DISALLOW_COPY_ASSIGN_AND_MOVE(GoldfishDevice);
};
#endif // SRC_GRAPHICS_BIN_VULKAN_LOADER_GOLDFISH_DEVICE_H_