2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-01-21 22:24:52 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-02-27 18:39:32 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2020-02-12 00:48:40 +08:00
|
|
|
#include <memory>
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
class Drm;
|
2019-07-12 22:50:14 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
class OSInterface::OSInterfaceImpl {
|
|
|
|
public:
|
2020-02-12 00:48:40 +08:00
|
|
|
OSInterfaceImpl();
|
|
|
|
~OSInterfaceImpl();
|
2017-12-21 07:45:38 +08:00
|
|
|
Drm *getDrm() const {
|
2020-02-12 00:48:40 +08:00
|
|
|
return drm.get();
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
2020-02-12 00:48:40 +08:00
|
|
|
void setDrm(Drm *drm);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
protected:
|
2020-02-12 00:48:40 +08:00
|
|
|
std::unique_ptr<Drm> drm;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|