mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use ipc::bytes_channel in ReadPixels
This commit is contained in:
parent
4e9281dcbf
commit
408e540c55
3 changed files with 11 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use euclid::Size2D;
|
||||
use gleam::gl;
|
||||
use ipc_channel::ipc::IpcBytesReceiver;
|
||||
use ipc_channel::ipc::{IpcBytesReceiver, IpcBytesSender};
|
||||
use offscreen_gl_context::{GLContextAttributes, GLLimits};
|
||||
use serde_bytes::ByteBuf;
|
||||
use std::borrow::Cow;
|
||||
|
@ -214,7 +214,7 @@ pub enum WebGLCommand {
|
|||
GetRenderbufferParameter(u32, u32, WebGLSender<i32>),
|
||||
PolygonOffset(f32, f32),
|
||||
RenderbufferStorage(u32, u32, i32, i32),
|
||||
ReadPixels(i32, i32, i32, i32, u32, u32, WebGLSender<ByteBuf>),
|
||||
ReadPixels(i32, i32, i32, i32, u32, u32, IpcBytesSender),
|
||||
SampleCoverage(f32, bool),
|
||||
Scissor(i32, i32, i32, i32),
|
||||
StencilFunc(u32, i32, u32),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue