#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include "include/core/SkString.h"
#include "include/gpu/ganesh/gl/GrGLExtensions.h"
#include "include/gpu/ganesh/gl/GrGLFunctions.h"
#include "include/private/base/SkTArray.h"
#include "src/core/SkStringUtils.h"
#include "src/gpu/ganesh/GrStencilSettings.h"
#include <ctype.h>
#include <array>
#include <cstdio>
#include <cstring>
#include <tuple>
#include <utility>
usingnamespaceskia_private;
#if GR_GL_LOG_CALLS
bool gLogCallsGL = …;
#endif
#if GR_GL_CHECK_ERROR
bool gCheckErrorGL = …;
#endif
GrGLStandard GrGLGetStandardInUseFromString(const char* versionString) { … }
GrGLVersion GrGLGetVersionFromString(const char* versionString) { … }
GrGLVersion GrGLGetVersion(const GrGLInterface* gl) { … }
static GrGLSLVersion get_glsl_version(const char* versionString) { … }
static GrGLVendor get_vendor(const char* vendorString) { … }
static GrGLRenderer get_renderer(const char* rendererString, const GrGLExtensions& extensions) { … }
static bool is_commamd_buffer(const char* rendererString, const char* versionString) { … }
static bool is_virgl(const char* rendererString) { … }
static std::tuple<GrGLDriver, GrGLDriverVersion> get_driver_and_version(GrGLStandard standard,
GrGLVendor vendor,
const char* vendorString,
const char* rendererString,
const char* versionString) { … }
static std::tuple<GrGLANGLEBackend, SkString> get_angle_backend(const char* rendererString) { … }
static std::tuple<GrGLVendor, GrGLRenderer, GrGLDriver, GrGLDriverVersion>
get_angle_gl_vendor_and_renderer(
const char* innerString,
const GrGLExtensions& extensions) { … }
static GrGLVendor get_angle_metal_vendor(const char* innerString) { … }
static std::tuple<GrGLVendor, GrGLRenderer, GrGLDriver, GrGLDriverVersion>
get_angle_d3d_vendor_and_renderer(const char* innerString) { … }
static std::tuple<GrGLVendor, GrGLRenderer>
get_webgl_vendor_and_renderer(
const GrGLInterface* interface) { … }
GrGLDriverInfo GrGLGetDriverInfo(const GrGLInterface* interface) { … }
GrGLenum GrToGLStencilFunc(GrStencilTest test) { … }
bool GrGLFormatIsCompressed(GrGLFormat format) { … }