Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrGLMakeNativeInterface_none.cpp File Reference
#include "include/gpu/gl/GrGLInterface.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 10 of file GrGLMakeNativeInterface_none.cpp.

10{ return nullptr; }