Flutter Engine
The Flutter Engine
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 {
29}
30} // namespace GrGLInterfaces
SK_API sk_sp< const GrGLInterface > GrGLMakeAssembledInterface(void *ctx, GrGLGetProc get)
#define GR_GL_CORE_FUNCTIONS_EACH(M)
void(* GrGLFuncPtr)()
Definition: GrGLInterface.h:17
#define M(X)
static GrGLFuncPtr epoxy_get_gl_proc(void *ctx, const char name[])
#define SkASSERT(cond)
Definition: SkAssert.h:116
void(*(* epoxy_eglGetProcAddress)(const char *procname))(void)
Definition: mock_epoxy.cc:458
SK_API sk_sp< const GrGLInterface > MakeEpoxyEGL()
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32