Refactor around sharings

- exposing additional handles in common code
- adding proxy for CreateEvent (windows)

Change-Id: I90872682c6c518c98d9d43e79f5112ee869e94aa
This commit is contained in:
Chodor, Jaroslaw
2018-03-23 15:55:13 +01:00
committed by sys_ocldev
parent 7f32eb06d1
commit d65128d4e8
18 changed files with 166 additions and 9 deletions

View File

@@ -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;
};