Update WR (CPU text optimizations, image format renames).

This commit is contained in:
Glenn Watson 2017-06-16 15:27:22 +10:00
parent e3a52536b6
commit e7b1e041c8
9 changed files with 39 additions and 39 deletions

View file

@ -690,9 +690,9 @@ impl WebGLRenderingContext {
let size = Size2D::new(img.width as i32, img.height as i32);
// For now Servo's images are all stored as RGBA8 internally.
// For now Servo's images are all stored as BGRA8 internally.
let mut data = match img.format {
PixelFormat::RGBA8 => img.bytes.to_vec(),
PixelFormat::BGRA8 => img.bytes.to_vec(),
_ => unimplemented!(),
};