mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
40 lines
979 B
C++
40 lines
979 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/os_interface/os_interface.h"
|
|
#include "runtime/os_interface/windows/windows_wrapper.h"
|
|
|
|
#include <d3dkmthk.h>
|
|
#include <memory>
|
|
#include "profileapi.h"
|
|
#include "umKmInc/sharedata.h"
|
|
|
|
namespace OCLRT {
|
|
class Wddm;
|
|
|
|
class OSInterface::OSInterfaceImpl {
|
|
public:
|
|
OSInterfaceImpl();
|
|
virtual ~OSInterfaceImpl() = default;
|
|
Wddm *getWddm() const;
|
|
void setWddm(Wddm *wddm);
|
|
D3DKMT_HANDLE getAdapterHandle() const;
|
|
D3DKMT_HANDLE getDeviceHandle() const;
|
|
PFND3DKMT_ESCAPE getEscapeHandle() const;
|
|
uint32_t getHwContextId() const;
|
|
|
|
MOCKABLE_VIRTUAL HANDLE createEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState,
|
|
LPCSTR lpName);
|
|
MOCKABLE_VIRTUAL BOOL closeHandle(HANDLE hObject);
|
|
|
|
protected:
|
|
std::unique_ptr<Wddm> wddm;
|
|
};
|
|
} // namespace OCLRT
|