Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
GrGLMakeEGLInterface.cpp File Reference
#include "include/gpu/gl/GrGLAssembleInterface.h"
#include "include/gpu/gl/GrGLInterface.h"
#include "src/gpu/ganesh/gl/GrGLCoreFunctions.h"
#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include <EGL/egl.h>
#include <GLES2/gl2.h>

Go to the source code of this file.

Namespaces

namespace  GrGLInterfaces
 

Macros

#define GL_GLEXT_PROTOTYPES
 
#define M(X)   if (0 == strcmp(#X, name)) { return (GrGLFuncPtr) X; }
 

Functions

static GrGLFuncPtr egl_get_gl_proc (void *ctx, const char name[])
 
SK_API sk_sp< const GrGLInterfaceGrGLInterfaces::MakeEGL ()
 
sk_sp< const GrGLInterfaceGrGLMakeEGLInterface ()
 

Macro Definition Documentation

◆ GL_GLEXT_PROTOTYPES

#define GL_GLEXT_PROTOTYPES

Definition at line 14 of file GrGLMakeEGLInterface.cpp.

◆ M

#define M (   X)    if (0 == strcmp(#X, name)) { return (GrGLFuncPtr) X; }

Function Documentation

◆ egl_get_gl_proc()

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

Definition at line 18 of file GrGLMakeEGLInterface.cpp.

18 {
19 SkASSERT(nullptr == ctx);
20 #define M(X) if (0 == strcmp(#X, name)) { return (GrGLFuncPtr) X; }
22 #undef M
23 return eglGetProcAddress(name);
24}
#define GR_GL_CORE_FUNCTIONS_EACH(M)
#define M(X)
#define SkASSERT(cond)
Definition SkAssert.h:116
const char * name
Definition fuchsia.cc:50

◆ GrGLMakeEGLInterface()

sk_sp< const GrGLInterface > GrGLMakeEGLInterface ( )

Definition at line 33 of file GrGLMakeEGLInterface.cpp.

33{ return GrGLInterfaces::MakeEGL(); }
SK_API sk_sp< const GrGLInterface > MakeEGL()