Android-cuttlefish cvd tool
Namespaces | Macros | Functions | Variables
egl.cpp File Reference
#include "cuttlefish/host/graphics_detector/egl.h"
#include "GLES/gl.h"
Include dependency graph for egl.cpp:

Namespaces

namespace  gfxstream
 
namespace  gfxstream::anonymous_namespace{egl.cpp}
 

Macros

#define LOAD_EGL_FUNCTION_POINTER(return_type, function_name, signature)
 

Functions

gfxstream::expected< Lib, std::string > gfxstream::anonymous_namespace{egl.cpp}::LoadEglLib ()
 

Variables

constexpr const char gfxstream::anonymous_namespace{egl.cpp}::kEglLib [] = "libEGL.so"
 
constexpr const char gfxstream::anonymous_namespace{egl.cpp}::kEglLibAlt [] = "libEGL.so.1"
 

Macro Definition Documentation

◆ LOAD_EGL_FUNCTION_POINTER

#define LOAD_EGL_FUNCTION_POINTER (   return_type,
  function_name,
  signature 
)
Value:
egl.function_name = reinterpret_cast<return_type(GL_APIENTRY*) signature>( \
egl.mLib.GetSymbol(#function_name)); \
if (egl.function_name == nullptr) { \
egl.function_name = reinterpret_cast<return_type(GL_APIENTRY*) signature>( \
egl.eglGetProcAddress(#function_name)); \
}