mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Refactor around sharings
- exposing additional handles in common code - adding proxy for CreateEvent (windows) Change-Id: I90872682c6c518c98d9d43e79f5112ee869e94aa
This commit is contained in:
committed by
sys_ocldev
parent
7f32eb06d1
commit
d65128d4e8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -32,6 +32,7 @@ class Wddm;
|
||||
class OSInterface::OSInterfaceImpl {
|
||||
public:
|
||||
OSInterfaceImpl();
|
||||
virtual ~OSInterfaceImpl() = default;
|
||||
Wddm *getWddm() const;
|
||||
void setWddm(Wddm *wddm);
|
||||
D3DKMT_HANDLE getAdapterHandle() const;
|
||||
@@ -39,6 +40,10 @@ class OSInterface::OSInterfaceImpl {
|
||||
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:
|
||||
Wddm *wddm;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user