mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Move PixelFormat to the pixels crate
This commit is contained in:
parent
faee0b2b0c
commit
2c0acf6b9b
14 changed files with 38 additions and 21 deletions
|
@ -34,13 +34,13 @@ use cssparser::{Parser, ParserInput, RGBA};
|
|||
use dom_struct::dom_struct;
|
||||
use euclid::{vec2, Point2D, Rect, Size2D, Transform2D};
|
||||
use ipc_channel::ipc::{self, IpcSender};
|
||||
use net_traits::image::base::PixelFormat;
|
||||
use net_traits::image_cache::CanRequestImages;
|
||||
use net_traits::image_cache::ImageCache;
|
||||
use net_traits::image_cache::ImageOrMetadataAvailable;
|
||||
use net_traits::image_cache::ImageResponse;
|
||||
use net_traits::image_cache::ImageState;
|
||||
use net_traits::image_cache::UsePlaceholder;
|
||||
use pixels::PixelFormat;
|
||||
use profile_traits::ipc as profiled_ipc;
|
||||
use script_traits::ScriptMsg;
|
||||
use servo_url::ServoUrl;
|
||||
|
|
|
@ -44,8 +44,8 @@ use js::rust::wrappers::Construct1;
|
|||
use js::rust::HandleValue;
|
||||
use js::rust::Runtime;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use net_traits::image::base::PixelFormat;
|
||||
use net_traits::image_cache::ImageCache;
|
||||
use pixels::PixelFormat;
|
||||
use profile_traits::ipc;
|
||||
use script_traits::Painter;
|
||||
use script_traits::{DrawAPaintImageResult, PaintWorkletError};
|
||||
|
|
|
@ -66,10 +66,9 @@ use js::typedarray::{
|
|||
ArrayBufferView, CreateWith, Float32, Float32Array, Int32, Int32Array, Uint32Array,
|
||||
};
|
||||
use js::typedarray::{TypedArray, TypedArrayElementCreator};
|
||||
use net_traits::image::base::PixelFormat;
|
||||
use net_traits::image_cache::ImageResponse;
|
||||
use offscreen_gl_context::{GLContextAttributes, GLLimits};
|
||||
use pixels;
|
||||
use pixels::{self, PixelFormat};
|
||||
use script_layout_interface::HTMLCanvasDataSource;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use servo_config::prefs::PREFS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue