Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrGLMakeEpoxyEGLInterface.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2024 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
13
14#include <epoxy/egl.h>
15#include <epoxy/gl.h>
16
17static GrGLFuncPtr epoxy_get_gl_proc(void* ctx, const char name[])
18{
19 SkASSERT(nullptr == ctx);
20 #define M(X) if (0 == strcmp(#X, name)) { return (GrGLFuncPtr) epoxy_ ## X; }
22 #undef M
24}
25
26namespace GrGLInterfaces {
30} // namespace GrGLInterfaces
SK_API sk_sp< const GrGLInterface > GrGLMakeAssembledInterface(void *ctx, GrGLGetProc get)
#define GR_GL_CORE_FUNCTIONS_EACH(M)
void(* GrGLFuncPtr)()
#define M(X)
static GrGLFuncPtr epoxy_get_gl_proc(void *ctx, const char name[])
#define SkASSERT(cond)
Definition SkAssert.h:116
const char * name
Definition fuchsia.cc:50
void(*(* epoxy_eglGetProcAddress)(const char *procname))(void)
SK_API sk_sp< const GrGLInterface > MakeEpoxyEGL()