aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-10-19 12:40:03 +0200
committerGitHub <noreply@github.com>2024-10-19 10:40:03 +0000
commit76bedf28e09703abd99f8cf8e7099459ea79cb83 (patch)
tree20f564e172c773978379291d49f5aa18577cc9ec /components/script/dom
parenta13900c4f8ec32a51b7bbdd166664fc6befb0f4b (diff)
downloadservo-76bedf28e09703abd99f8cf8e7099459ea79cb83.tar.gz
servo-76bedf28e09703abd99f8cf8e7099459ea79cb83.zip
replace sparkle with glow in components/script (#33911)
* replace sparkle's GlType with canvas_traits's GlType Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * remove sparkle from components/servo Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * remove sparkle from script Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/vertexarrayobject.rs2
-rw-r--r--components/script/dom/webgl_extensions/extensions.rs4
-rw-r--r--components/script/dom/xrwebgllayer.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/vertexarrayobject.rs b/components/script/dom/vertexarrayobject.rs
index 588ba601790..c8348278df0 100644
--- a/components/script/dom/vertexarrayobject.rs
+++ b/components/script/dom/vertexarrayobject.rs
@@ -124,7 +124,7 @@ impl VertexArrayObject {
constants::FLOAT => 4,
constants::INT | constants::UNSIGNED_INT if is_webgl2 => 4,
constants2::HALF_FLOAT if is_webgl2 => 2,
- sparkle::gl::FIXED if is_webgl2 => 4,
+ glow::FIXED if is_webgl2 => 4,
constants2::INT_2_10_10_10_REV | constants2::UNSIGNED_INT_2_10_10_10_REV
if is_webgl2 && size == 4 =>
{
diff --git a/components/script/dom/webgl_extensions/extensions.rs b/components/script/dom/webgl_extensions/extensions.rs
index f9d9bbee01d..c458593d6da 100644
--- a/components/script/dom/webgl_extensions/extensions.rs
+++ b/components/script/dom/webgl_extensions/extensions.rs
@@ -10,7 +10,7 @@ use canvas_traits::webgl::{GlType, TexFormat, WebGLSLVersion, WebGLVersion};
use fnv::{FnvHashMap, FnvHashSet};
use js::jsapi::JSObject;
use malloc_size_of::MallocSizeOf;
-use sparkle::gl::{self, GLenum};
+type GLenum = u32;
use super::wrapper::{TypedWebGLExtensionWrapper, WebGLExtensionWrapper};
use super::{ext, WebGLExtension, WebGLExtensionSpec};
@@ -461,7 +461,7 @@ impl WebGLExtensions {
if type_ == OESTextureHalfFloatConstants::HALF_FLOAT_OES &&
!self.supports_gl_extension("GL_OES_texture_half_float")
{
- return gl::HALF_FLOAT;
+ return glow::HALF_FLOAT;
}
type_
}
diff --git a/components/script/dom/xrwebgllayer.rs b/components/script/dom/xrwebgllayer.rs
index ded46063598..3812c8df2ea 100644
--- a/components/script/dom/xrwebgllayer.rs
+++ b/components/script/dom/xrwebgllayer.rs
@@ -139,9 +139,9 @@ impl XRWebGLLayer {
fn texture_target(&self) -> u32 {
if cfg!(target_os = "macos") {
- sparkle::gl::TEXTURE_RECTANGLE
+ glow::TEXTURE_RECTANGLE
} else {
- sparkle::gl::TEXTURE_2D
+ glow::TEXTURE_2D
}
}