aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorMátyás Mustoha <matyas.mustoha@h-lab.eu>2019-10-04 11:22:07 +0200
committerMátyás Mustoha <matyas.mustoha@h-lab.eu>2019-10-08 16:21:43 +0200
commit26df1962c38421251a998b8acc7d6652116d4866 (patch)
treed7d62618d2799ce5d0b36f0a1a816bd83fbfa7d9 /components/script/dom/webglrenderingcontext.rs
parent78438113d4ee6838c1f630f4ac0cdb2b157e8781 (diff)
downloadservo-26df1962c38421251a998b8acc7d6652116d4866.tar.gz
servo-26df1962c38421251a998b8acc7d6652116d4866.zip
Add WebGLSampler support
Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 46b9c72c6ca..e994470682e 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -103,16 +103,6 @@ macro_rules! handle_object_deletion {
};
}
-macro_rules! optional_root_object_to_js_or_null {
- ($cx: expr, $binding:expr) => {{
- rooted!(in($cx) let mut rval = NullValue());
- if let Some(object) = $binding {
- object.to_jsval($cx, rval.handle_mut());
- }
- rval.get()
- }};
-}
-
fn has_invalid_blend_constants(arg1: u32, arg2: u32) -> bool {
match (arg1, arg2) {
(constants::CONSTANT_COLOR, constants::CONSTANT_ALPHA) => true,
@@ -4259,7 +4249,7 @@ impl Textures {
}
}
- fn active_unit_enum(&self) -> u32 {
+ pub fn active_unit_enum(&self) -> u32 {
self.active_unit.get() + constants::TEXTURE0
}