mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Call rgba8_byte_swap_colors_inplace on the WebGL thread
This commit is contained in:
parent
2c0acf6b9b
commit
cfca906ee2
8 changed files with 57 additions and 70 deletions
|
@ -22,6 +22,7 @@ lazy_static = "1"
|
|||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
|
||||
offscreen_gl_context = {version = "0.21", features = ["serde"]}
|
||||
pixels = {path = "../pixels"}
|
||||
serde = "1.0"
|
||||
serde_bytes = "0.10"
|
||||
servo_config = {path = "../config"}
|
||||
|
|
|
@ -6,6 +6,7 @@ use euclid::{Rect, Size2D};
|
|||
use gleam::gl;
|
||||
use ipc_channel::ipc::{IpcBytesReceiver, IpcBytesSender};
|
||||
use offscreen_gl_context::{GLContextAttributes, GLLimits};
|
||||
use pixels::PixelFormat;
|
||||
use serde_bytes::ByteBuf;
|
||||
use std::borrow::Cow;
|
||||
use std::num::NonZeroU32;
|
||||
|
@ -282,7 +283,7 @@ pub enum WebGLCommand {
|
|||
unpacking_alignment: u32,
|
||||
alpha_treatment: Option<AlphaTreatment>,
|
||||
y_axis_treatment: YAxisTreatment,
|
||||
tex_source: TexSource,
|
||||
pixel_format: Option<PixelFormat>,
|
||||
receiver: IpcBytesReceiver,
|
||||
},
|
||||
TexSubImage2D {
|
||||
|
@ -298,7 +299,7 @@ pub enum WebGLCommand {
|
|||
unpacking_alignment: u32,
|
||||
alpha_treatment: Option<AlphaTreatment>,
|
||||
y_axis_treatment: YAxisTreatment,
|
||||
tex_source: TexSource,
|
||||
pixel_format: Option<PixelFormat>,
|
||||
receiver: IpcBytesReceiver,
|
||||
},
|
||||
DrawingBufferWidth(WebGLSender<i32>),
|
||||
|
@ -775,9 +776,3 @@ pub enum YAxisTreatment {
|
|||
AsIs,
|
||||
Flipped,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, MallocSizeOf, PartialEq, Serialize)]
|
||||
pub enum TexSource {
|
||||
FromHtmlElement,
|
||||
FromArray,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue