Flutter Engine
The Flutter Engine
Functions
GrGLMakeNativeInterface_egl.cpp File Reference
#include "include/gpu/gl/GrGLInterface.h"
#include "include/gpu/ganesh/gl/egl/GrGLMakeEGLInterface.h"

Go to the source code of this file.

Functions

sk_sp< const GrGLInterfaceGrGLMakeNativeInterface ()
 

Function Documentation

◆ GrGLMakeNativeInterface()

sk_sp< const GrGLInterface > GrGLMakeNativeInterface ( )

Rather than depend on platform-specific GL headers and libraries, we require the client to provide a struct of GL function pointers. This struct can be specified per-GrContext as a parameter to GrContext::MakeGL. If no interface is passed to MakeGL then a default GL interface is created using GrGLMakeNativeInterface(). If this returns nullptr then GrContext::MakeGL() will fail.

The implementation of GrGLMakeNativeInterface is platform-specific. Several implementations have been provided (for GLX, WGL, EGL, etc), along with an implementation that simply returns nullptr. Clients should select the most appropriate one to build.

Definition at line 12 of file GrGLMakeNativeInterface_egl.cpp.

12{ return GrGLMakeEGLInterface(); }
sk_sp< const GrGLInterface > GrGLMakeEGLInterface()