aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-09-01 11:58:48 +0200
committerGitHub <noreply@github.com>2023-09-01 09:58:48 +0000
commite9281e2eda53f45cf1c902a843158c1dc2494a89 (patch)
tree6c9d5be99b77a99a448444943c3d018f78f14dfa /components/script/dom/webglrenderingcontext.rs
parent6eb3e165787449492ee12f3bd1a6f8529356f7e6 (diff)
downloadservo-e9281e2eda53f45cf1c902a843158c1dc2494a89.tar.gz
servo-e9281e2eda53f45cf1c902a843158c1dc2494a89.zip
build(deps): bump bitflags from 1.3.2 to 2.3.1 (#30273)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.1)
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 39807da9a81..b6225850975 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -136,10 +136,12 @@ where
ObjectValue(rval.get())
}
+/// Set of bitflags for texture unpacking (texImage2d, etc...)
+#[derive(Clone, Copy, JSTraceable, MallocSizeOf)]
+struct TextureUnpacking(u8);
+
bitflags! {
- /// Set of bitflags for texture unpacking (texImage2d, etc...)
- #[derive(JSTraceable, MallocSizeOf)]
- struct TextureUnpacking: u8 {
+ impl TextureUnpacking: u8 {
const FLIP_Y_AXIS = 0x01;
const PREMULTIPLY_ALPHA = 0x02;
const CONVERT_COLORSPACE = 0x04;
@@ -4703,12 +4705,14 @@ macro_rules! capabilities {
capabilities!($name, $next, $($rest,)* [$name = 1;]);
};
($prev:ident, $name:ident, $($rest:ident,)* [$($tt:tt)*]) => {
- capabilities!($name, $($rest,)* [$($tt)* $name = Self::$prev.bits << 1;]);
+ capabilities!($name, $($rest,)* [$($tt)* $name = Self::$prev.bits() << 1;]);
};
($prev:ident, [$($name:ident = $value:expr;)*]) => {
+ #[derive(Clone, Copy, JSTraceable, MallocSizeOf)]
+ pub struct CapFlags(u16);
+
bitflags! {
- #[derive(JSTraceable, MallocSizeOf)]
- struct CapFlags: u16 {
+ impl CapFlags: u16 {
$(const $name = $value;)*
}
}