mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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