Update WR - stride support, remove deprecated / unused shaders.

This commit is contained in:
Glenn Watson 2016-11-09 13:35:14 +10:00
parent 3ba56df73f
commit 1f00931045
16 changed files with 16 additions and 799 deletions

View file

@ -323,7 +323,11 @@ fn get_placeholder_image(webrender_api: &webrender_traits::RenderApi) -> io::Res
let format = convert_format(image.format);
let mut bytes = Vec::new();
bytes.extend_from_slice(&*image.bytes);
image.id = Some(webrender_api.add_image(image.width, image.height, format, bytes));
image.id = Some(webrender_api.add_image(image.width,
image.height,
None,
format,
bytes));
Ok(Arc::new(image))
}
@ -478,7 +482,11 @@ impl ImageCache {
let format = convert_format(image.format);
let mut bytes = Vec::new();
bytes.extend_from_slice(&*image.bytes);
image.id = Some(self.webrender_api.add_image(image.width, image.height, format, bytes));
image.id = Some(self.webrender_api.add_image(image.width,
image.height,
None,
format,
bytes));
}
LoadResult::PlaceholderLoaded(..) | LoadResult::None => {}
}

View file

@ -2833,11 +2833,12 @@ dependencies = [
[[package]]
name = "webrender"
version = "0.8.0"
source = "git+https://github.com/servo/webrender#13e06df7906b71aaa2aa621a012678cae1f88052"
source = "git+https://github.com/servo/webrender#a0b6ea0b51a170caf591fb281f5aba25e566158f"
dependencies = [
"app_units 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"bincode 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"bit-set 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
"core-graphics 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"core-text 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@ -2858,7 +2859,7 @@ dependencies = [
[[package]]
name = "webrender_traits"
version = "0.8.0"
source = "git+https://github.com/servo/webrender#13e06df7906b71aaa2aa621a012678cae1f88052"
source = "git+https://github.com/servo/webrender#a0b6ea0b51a170caf591fb281f5aba25e566158f"
dependencies = [
"app_units 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",