This source file includes following definitions.
- InitializeStaticGLBindingsOSMESA
- InitializeDynamicGLBindingsOSMESA
- InitializeDebugGLBindingsOSMESA
- ClearGLBindingsOSMESA
- InitializeBase
- Initialize
#include "ui/gl/gl_osmesa_api_implementation.h"
namespace gfx {
RealOSMESAApi* g_real_osmesa;
void InitializeStaticGLBindingsOSMESA() {
g_driver_osmesa.InitializeStaticBindings();
if (!g_real_osmesa) {
g_real_osmesa = new RealOSMESAApi();
}
g_real_osmesa->Initialize(&g_driver_osmesa);
g_current_osmesa_context = g_real_osmesa;
}
void InitializeDynamicGLBindingsOSMESA(GLContext* context) {
g_driver_osmesa.InitializeDynamicBindings(context);
}
void InitializeDebugGLBindingsOSMESA() {
g_driver_osmesa.InitializeDebugBindings();
}
void ClearGLBindingsOSMESA() {
if (g_real_osmesa) {
delete g_real_osmesa;
g_real_osmesa = NULL;
}
g_current_osmesa_context = NULL;
g_driver_osmesa.ClearBindings();
}
OSMESAApi::OSMESAApi() {
}
OSMESAApi::~OSMESAApi() {
}
OSMESAApiBase::OSMESAApiBase()
: driver_(NULL) {
}
OSMESAApiBase::~OSMESAApiBase() {
}
void OSMESAApiBase::InitializeBase(DriverOSMESA* driver) {
driver_ = driver;
}
RealOSMESAApi::RealOSMESAApi() {
}
RealOSMESAApi::~RealOSMESAApi() {
}
void RealOSMESAApi::Initialize(DriverOSMESA* driver) {
InitializeBase(driver);
}
TraceOSMESAApi::~TraceOSMESAApi() {
}
}