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