Flutter Engine
The Flutter Engine
GrGLAssembleHelpers.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2019 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
10
12 void* ctx, GrGLGetProc get) {
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}
void GrGetEGLQueryAndDisplay(GrEGLQueryStringFn **queryString, GrEGLDisplay *display, void *ctx, GrGLGetProc get)
GrGLFuncPtr(* GrGLGetProc)(void *ctx, const char name[])
#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
void * GrEGLDisplay
Definition: GrGLTypes.h:166
const myers::Point & get(const myers::Segment &)