Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
GrGLMakeGLXInterface.cpp File Reference
#include "include/gpu/gl/GrGLAssembleInterface.h"
#include "include/gpu/gl/GrGLInterface.h"
#include "include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h"
#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include <GL/glx.h>

Go to the source code of this file.

Namespaces

namespace  GrGLInterfaces
 

Macros

#define GLX_GLXEXT_PROTOTYPES   1
 

Functions

static GrGLFuncPtr glx_get (void *ctx, const char name[])
 
SK_API sk_sp< const GrGLInterfaceGrGLInterfaces::MakeGLX ()
 
sk_sp< const GrGLInterfaceGrGLMakeGLXInterface ()
 

Macro Definition Documentation

◆ GLX_GLXEXT_PROTOTYPES

#define GLX_GLXEXT_PROTOTYPES   1

Definition at line 14 of file GrGLMakeGLXInterface.cpp.

Function Documentation

◆ glx_get()

static GrGLFuncPtr glx_get ( void *  ctx,
const char  name[] 
)
static

Definition at line 17 of file GrGLMakeGLXInterface.cpp.

17 {
18 // Avoid calling glXGetProcAddress() for EGL procs.
19 // We don't expect it to ever succeed, but somtimes it returns non-null anyway.
20 if (0 == strncmp(name, "egl", 3)) {
21 return nullptr;
22 }
23
24 SkASSERT(nullptr == ctx);
25 SkASSERT(glXGetCurrentContext());
26 return glXGetProcAddress(reinterpret_cast<const GLubyte*>(name));
27}
#define SkASSERT(cond)
Definition SkAssert.h:116
const char * name
Definition fuchsia.cc:50

◆ GrGLMakeGLXInterface()

sk_sp< const GrGLInterface > GrGLMakeGLXInterface ( )

Definition at line 40 of file GrGLMakeGLXInterface.cpp.

40{ return GrGLInterfaces::MakeGLX(); }
SK_API sk_sp< const GrGLInterface > MakeGLX()