#include <GrGLContext.h>
Extension of GrGLContextInfo that also provides access to GrGLInterface.
Definition at line 100 of file GrGLContext.h.
◆ ~GrGLContext()
GrGLContext::~GrGLContext |
( |
| ) |
|
|
override |
◆ glInterface()
Definition at line 108 of file GrGLContext.h.
sk_sp< const GrGLInterface > fInterface
◆ Make()
Creates a GrGLContext from a GrGLInterface and the currently bound OpenGL context accessible by the GrGLInterface.
Definition at line 19 of file GrGLContext.cpp.
20 {
22 return nullptr;
23 }
24
28 return nullptr;
29 }
30
32 return nullptr;
33 }
34
35
36
37
38
39
40
41
42
43
44#ifdef SK_BUILD_FOR_ANDROID
45 if (!
options.fDisableDriverCorrectnessWorkarounds &&
47 char androidAPIVersion[PROP_VALUE_MAX];
48 int strLength = __system_property_get("ro.build.version.sdk", androidAPIVersion);
49 if (strLength == 0 || atoi(androidAPIVersion) < 26) {
51 }
52 }
53#endif
54
55
56
57
58
59
61 options.fPreferExternalImagesOverES3 &&
62 !
options.fDisableDriverCorrectnessWorkarounds &&
65 !interface->
hasExtension(
"GL_OES_EGL_image_external_essl3") &&
66 !interface->
hasExtension(
"OES_EGL_image_external_essl3")) {
68 }
69
71 args.fInterface = std::move(interface);
72
74}
bool GrGLGetGLSLGeneration(const GrGLDriverInfo &info, SkSL::GLSLGeneration *generation)
#define GR_IS_GR_GL_ES(standard)
GrGLDriverInfo GrGLGetDriverInfo(const GrGLInterface *interface)
#define GR_GL_INVALID_VER
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
bool hasExtension(const char ext[]) const
The documentation for this class was generated from the following files: