Flutter Engine
The Flutter Engine
|
#include "include/gpu/gl/GrGLInterface.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/gpu/ganesh/GrDataUtils.h"
#include "src/gpu/ganesh/GrStencilSettings.h"
#include "src/gpu/ganesh/gl/GrGLDefines.h"
Go to the source code of this file.
Classes | |
struct | GrGLDriverInfo |
Macros | |
#define | GR_GL_VER(major, minor) |
#define | GR_GLSL_VER(major, minor) |
#define | GR_GL_DRIVER_VER(major, minor, point) |
#define | GR_GL_MAJOR_VER(version) (static_cast<uint32_t>(version) >> 16) |
#define | GR_GL_MINOR_VER(version) (static_cast<uint32_t>(version) & 0xFFFF) |
#define | GR_GL_INVALID_VER GR_GL_VER(0, 0) |
#define | GR_GLSL_INVALID_VER GR_GLSL_VER(0, 0) |
#define | GR_GL_DRIVER_UNKNOWN_VER GR_GL_DRIVER_VER(0, 0, 0) |
#define | GR_GL_INIT_ZERO 0 |
#define | GR_GL_GetIntegerv(gl, e, p) |
#define | GR_GL_GetFloatv(gl, e, p) |
#define | GR_GL_GetFramebufferAttachmentParameteriv(gl, t, a, pname, p) |
#define | GR_GL_GetInternalformativ(gl, t, f, n, s, p) |
#define | GR_GL_GetNamedFramebufferAttachmentParameteriv(gl, fb, a, pname, p) |
#define | GR_GL_GetRenderbufferParameteriv(gl, t, pname, p) |
#define | GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) |
#define | GR_GL_GetShaderPrecisionFormat(gl, st, pt, range, precision) |
#define | GR_STRING(X) GR_STRING_IMPL(X) |
#define | GR_STRING_IMPL(X) #X |
#define | GR_FILE_AND_LINE_STR __FILE__ "(" GR_STRING(__LINE__) ") : " |
#define | GR_GL_CHECK_ERROR_IMPL(IFACE, X) |
#define | GR_GL_LOG_CALLS_IMPL(X) |
#define | GR_GL_CALL(IFACE, X) |
#define | GR_GL_CALL_NOERRCHECK(IFACE, X) |
#define | GR_GL_CALL_RET(IFACE, RET, X) |
#define | GR_GL_CALL_RET_NOERRCHECK(IFACE, RET, X) |
Typedefs | |
typedef uint32_t | GrGLVersion |
typedef uint32_t | GrGLSLVersion |
typedef uint64_t | GrGLDriverVersion |
Functions | |
static constexpr uint32_t | GrGLFormatChannels (GrGLFormat format) |
static constexpr GrColorFormatDesc | GrGLFormatDesc (GrGLFormat format) |
GrGLStandard | GrGLGetStandardInUseFromString (const char *versionString) |
GrGLSLVersion | GrGLGetVersion (const GrGLInterface *) |
GrGLSLVersion | GrGLGetVersionFromString (const char *) |
GrGLDriverInfo | GrGLGetDriverInfo (const GrGLInterface *) |
void | GrGLCheckErr (const GrGLInterface *gl, const char *location, const char *call) |
static constexpr GrGLFormat | GrGLFormatFromGLEnum (GrGLenum glFormat) |
static constexpr GrGLenum | GrGLFormatToEnum (GrGLFormat format) |
static constexpr size_t | GrGLFormatBytesPerBlock (GrGLFormat format) |
static constexpr int | GrGLFormatStencilBits (GrGLFormat format) |
static constexpr bool | GrGLFormatIsPackedDepthStencil (GrGLFormat format) |
static constexpr bool | GrGLFormatIsSRGB (GrGLFormat format) |
GrGLenum | GrToGLStencilFunc (GrStencilTest test) |
bool | GrGLFormatIsCompressed (GrGLFormat) |
#define GR_FILE_AND_LINE_STR __FILE__ "(" GR_STRING(__LINE__) ") : " |
Creates a string of the form "<filename>(<linenumber>) : "
Definition at line 348 of file GrGLUtil.h.
#define GR_GL_CALL | ( | IFACE, | |
X | |||
) |
Definition at line 381 of file GrGLUtil.h.
#define GR_GL_CALL_NOERRCHECK | ( | IFACE, | |
X | |||
) |
Definition at line 389 of file GrGLUtil.h.
#define GR_GL_CALL_RET | ( | IFACE, | |
RET, | |||
X | |||
) |
Definition at line 396 of file GrGLUtil.h.
#define GR_GL_CALL_RET_NOERRCHECK | ( | IFACE, | |
RET, | |||
X | |||
) |
Definition at line 403 of file GrGLUtil.h.
#define GR_GL_CHECK_ERROR_IMPL | ( | IFACE, | |
X | |||
) |
Macros for using GrGLInterface to make GL calls
Definition at line 364 of file GrGLUtil.h.
#define GR_GL_DRIVER_UNKNOWN_VER GR_GL_DRIVER_VER(0, 0, 0) |
Definition at line 39 of file GrGLUtil.h.
#define GR_GL_DRIVER_VER | ( | major, | |
minor, | |||
point | |||
) |
Definition at line 30 of file GrGLUtil.h.
#define GR_GL_GetFloatv | ( | gl, | |
e, | |||
p | |||
) |
Definition at line 251 of file GrGLUtil.h.
#define GR_GL_GetFramebufferAttachmentParameteriv | ( | gl, | |
t, | |||
a, | |||
pname, | |||
p | |||
) |
Definition at line 257 of file GrGLUtil.h.
#define GR_GL_GetIntegerv | ( | gl, | |
e, | |||
p | |||
) |
Definition at line 245 of file GrGLUtil.h.
#define GR_GL_GetInternalformativ | ( | gl, | |
t, | |||
f, | |||
n, | |||
s, | |||
p | |||
) |
Definition at line 263 of file GrGLUtil.h.
#define GR_GL_GetNamedFramebufferAttachmentParameteriv | ( | gl, | |
fb, | |||
a, | |||
pname, | |||
p | |||
) |
Definition at line 269 of file GrGLUtil.h.
#define GR_GL_GetRenderbufferParameteriv | ( | gl, | |
t, | |||
pname, | |||
p | |||
) |
Definition at line 275 of file GrGLUtil.h.
#define GR_GL_GetShaderPrecisionFormat | ( | gl, | |
st, | |||
pt, | |||
range, | |||
precision | |||
) |
Definition at line 287 of file GrGLUtil.h.
#define GR_GL_GetTexLevelParameteriv | ( | gl, | |
t, | |||
l, | |||
pname, | |||
p | |||
) |
Definition at line 281 of file GrGLUtil.h.
#define GR_GL_INIT_ZERO 0 |
Some drivers want the var-int arg to be zero-initialized on input.
Definition at line 244 of file GrGLUtil.h.
#define GR_GL_INVALID_VER GR_GL_VER(0, 0) |
Definition at line 37 of file GrGLUtil.h.
#define GR_GL_LOG_CALLS_IMPL | ( | X | ) |
Definition at line 377 of file GrGLUtil.h.
#define GR_GL_MAJOR_VER | ( | version | ) | (static_cast<uint32_t>(version) >> 16) |
Definition at line 34 of file GrGLUtil.h.
#define GR_GL_MINOR_VER | ( | version | ) | (static_cast<uint32_t>(version) & 0xFFFF) |
Definition at line 35 of file GrGLUtil.h.
#define GR_GL_VER | ( | major, | |
minor | |||
) |
Definition at line 26 of file GrGLUtil.h.
#define GR_GLSL_INVALID_VER GR_GLSL_VER(0, 0) |
Definition at line 38 of file GrGLUtil.h.
#define GR_GLSL_VER | ( | major, | |
minor | |||
) |
Definition at line 28 of file GrGLUtil.h.
#define GR_STRING | ( | X | ) | GR_STRING_IMPL(X) |
GR_STRING makes a string of X where X is expanded before conversion to a string if X itself contains macros.
Definition at line 342 of file GrGLUtil.h.
Definition at line 343 of file GrGLUtil.h.
typedef uint64_t GrGLDriverVersion |
Definition at line 24 of file GrGLUtil.h.
typedef uint32_t GrGLSLVersion |
Definition at line 23 of file GrGLUtil.h.
typedef uint32_t GrGLVersion |
Definition at line 22 of file GrGLUtil.h.
|
strong |
|
strong |
Enumerator | |
---|---|
kMesa | |
kNVIDIA | |
kIntel | |
kQualcomm | |
kFreedreno | |
kAndroidEmulator | |
kImagination | |
kARM | |
kApple | |
kUnknown |
Definition at line 218 of file GrGLUtil.h.
|
strong |
Definition at line 150 of file GrGLUtil.h.
|
strong |
The Vendor and Renderer enum values are lazily updated as required.
Enumerator | |
---|---|
kARM | |
kGoogle | |
kImagination | |
kIntel | |
kQualcomm | |
kNVIDIA | |
kATI | |
kApple | |
kOther |
Definition at line 137 of file GrGLUtil.h.
void GrGLCheckErr | ( | const GrGLInterface * | gl, |
const char * | location, | ||
const char * | call | ||
) |
Helpers for glGetError()
|
staticconstexpr |
Definition at line 479 of file GrGLUtil.h.
|
staticconstexpr |
Definition at line 41 of file GrGLUtil.h.
|
staticconstexpr |
Definition at line 75 of file GrGLUtil.h.
|
staticconstexpr |
Definition at line 409 of file GrGLUtil.h.
bool GrGLFormatIsCompressed | ( | GrGLFormat | format | ) |
Returns true if the format is compressed.
Definition at line 812 of file GrGLUtil.cpp.
|
staticconstexpr |
Definition at line 552 of file GrGLUtil.h.
|
staticconstexpr |
Definition at line 588 of file GrGLUtil.h.
|
staticconstexpr |
Definition at line 514 of file GrGLUtil.h.
|
staticconstexpr |
Returns either the sized internal format or compressed internal format of the GrGLFormat.
Definition at line 445 of file GrGLUtil.h.
GrGLDriverInfo GrGLGetDriverInfo | ( | const GrGLInterface * | interface | ) |
Definition at line 723 of file GrGLUtil.cpp.
GrGLStandard GrGLGetStandardInUseFromString | ( | const char * | versionString | ) |
Definition at line 31 of file GrGLUtil.cpp.
GrGLSLVersion GrGLGetVersion | ( | const GrGLInterface * | gl | ) |
Definition at line 109 of file GrGLUtil.cpp.
GrGLSLVersion GrGLGetVersionFromString | ( | const char * | versionString | ) |
Definition at line 68 of file GrGLUtil.cpp.
GrGLenum GrToGLStencilFunc | ( | GrStencilTest | test | ) |
Definition at line 788 of file GrGLUtil.cpp.