Flutter Engine
The Flutter Engine
Functions
GrGLAssembleHelpers.h File Reference
#include "include/gpu/gl/GrGLAssembleInterface.h"

Go to the source code of this file.

Functions

void GrGetEGLQueryAndDisplay (GrEGLQueryStringFn **queryString, GrEGLDisplay *display, void *ctx, GrGLGetProc get)
 

Function Documentation

◆ GrGetEGLQueryAndDisplay()

void GrGetEGLQueryAndDisplay ( GrEGLQueryStringFn **  queryString,
GrEGLDisplay display,
void *  ctx,
GrGLGetProc  get 
)

Definition at line 11 of file GrGLAssembleHelpers.cpp.

12 {
13 *queryString = (GrEGLQueryStringFn*)get(ctx, "eglQueryString");
14 *display = GR_EGL_NO_DISPLAY;
15 if (*queryString) {
16 GrEGLGetCurrentDisplayFn* getCurrentDisplay =
17 (GrEGLGetCurrentDisplayFn*)get(ctx, "eglGetCurrentDisplay");
18 if (getCurrentDisplay) {
19 *display = getCurrentDisplay();
20 } else {
21 *queryString = nullptr;
22 }
23 }
24}
#define GR_EGL_NO_DISPLAY
Definition: GrGLDefines.h:1116
GrEGLDisplay GR_GL_FUNCTION_TYPE() GrEGLGetCurrentDisplayFn
const char *GR_GL_FUNCTION_TYPE(GrEGLDisplay dpy, GrEGLint name) GrEGLQueryStringFn
const myers::Point & get(const myers::Segment &)