Files
compute-runtime/opencl/source/sharings/gl/gl_context_guard.h
Maciej Dziuban 24cee4611d Remove gl sharing related code from os_interface
Change-Id: Iece2fbdadefe338384f8961eef2720ff9b381e23
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-04-01 08:02:21 +02:00

28 lines
481 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/source/sharings/gl/gl_sharing.h"
#include "gl_types.h"
namespace NEO {
class GLContextGuard {
public:
GLContextGuard() = delete;
GLContextGuard(GLSharingFunctions &sharingFcns);
~GLContextGuard();
protected:
GLSharingFunctions *sharingFunctions;
GLContext currentContextHandle;
GLDisplay currentDisplayHandle;
};
} // namespace NEO