summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-13 18:39:45 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 15:16:42 +0200
commitf987138760b344a8869e319f28400acc438d0553 (patch)
tree7eb5e845f08945e1ebd986cc85f5e34e1934b678 /gfx/gl
parent1803c596dc4490b0f6dc481dbdf8844655102998 (diff)
downloaduxp-f987138760b344a8869e319f28400acc438d0553.tar.gz
Issue #1053 - Remove Android WebGL/EGL extensions.
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/GLDefs.h6
-rw-r--r--gfx/gl/GLLibraryEGL.cpp14
-rw-r--r--gfx/gl/GLLibraryEGL.h2
3 files changed, 0 insertions, 22 deletions
diff --git a/gfx/gl/GLDefs.h b/gfx/gl/GLDefs.h
index f580c06703..bffd1a7270 100644
--- a/gfx/gl/GLDefs.h
+++ b/gfx/gl/GLDefs.h
@@ -44,12 +44,6 @@
#define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA 0x8C93
#define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA 0x87EE
-// EGL_ANDROID_image_crop
-#define LOCAL_EGL_IMAGE_CROP_LEFT_ANDROID 0x3148
-#define LOCAL_EGL_IMAGE_CROP_TOP_ANDROID 0x3149
-#define LOCAL_EGL_IMAGE_CROP_RIGHT_ANDROID 0x314A
-#define LOCAL_EGL_IMAGE_CROP_BOTTOM_ANDROID 0x314B
-
// EGL_ANGLE_platform_angle
#define LOCAL_EGL_PLATFORM_ANGLE_ANGLE 0x3202
#define LOCAL_EGL_PLATFORM_ANGLE_TYPE_ANGLE 0x3203
diff --git a/gfx/gl/GLLibraryEGL.cpp b/gfx/gl/GLLibraryEGL.cpp
index 5b95d83b2b..c0ab95c838 100644
--- a/gfx/gl/GLLibraryEGL.cpp
+++ b/gfx/gl/GLLibraryEGL.cpp
@@ -48,8 +48,6 @@ static const char* sEGLExtensionNames[] = {
"EGL_EXT_create_context_robustness",
"EGL_KHR_image",
"EGL_KHR_fence_sync",
- "EGL_ANDROID_native_fence_sync",
- "EGL_ANDROID_image_crop",
"EGL_ANGLE_platform_angle",
"EGL_ANGLE_platform_angle_d3d"
};
@@ -368,18 +366,6 @@ GLLibraryEGL::EnsureInitialized(bool forceAccel, nsACString* const out_failureId
return false;
}
- GLLibraryLoader::SymLoadStruct optionalSymbols[] = {
- // On Android 4.3 and up, certain features like ANDROID_native_fence_sync
- // can only be queried by using a special eglQueryString.
- { (PRFuncPtr*) &mSymbols.fQueryStringImplementationANDROID,
- { "_Z35eglQueryStringImplementationANDROIDPvi", nullptr } },
- { nullptr, { nullptr } }
- };
-
- // Do not warn about the failure to load this - see bug 1092191
- Unused << GLLibraryLoader::LoadSymbols(mEGLLibrary, &optionalSymbols[0],
- nullptr, nullptr, false);
-
InitClientExtensions();
const auto lookupFunction =
diff --git a/gfx/gl/GLLibraryEGL.h b/gfx/gl/GLLibraryEGL.h
index e48f2e21be..88f57d4c97 100644
--- a/gfx/gl/GLLibraryEGL.h
+++ b/gfx/gl/GLLibraryEGL.h
@@ -157,8 +157,6 @@ public:
EXT_create_context_robustness,
KHR_image,
KHR_fence_sync,
- ANDROID_native_fence_sync,
- EGL_ANDROID_image_crop,
ANGLE_platform_angle,
ANGLE_platform_angle_d3d,
Extensions_Max