mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move LayerKind and ScrollPolicy enums to gfx_traits
This also moves LayerId and LayerProperties to gfx_traits. Fixes #8836.
This commit is contained in:
parent
a900196b3f
commit
637afecec9
26 changed files with 150 additions and 115 deletions
|
@ -21,9 +21,8 @@ use display_list::optimizer::DisplayListOptimizer;
|
|||
use euclid::approxeq::ApproxEq;
|
||||
use euclid::num::Zero;
|
||||
use euclid::{Matrix2D, Matrix4, Point2D, Rect, SideOffsets2D, Size2D};
|
||||
use gfx_traits::color;
|
||||
use gfx_traits::{color, LayerId, LayerKind, ScrollPolicy};
|
||||
use libc::uintptr_t;
|
||||
use msg::compositor_msg::{LayerId, LayerKind, ScrollPolicy};
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use net_traits::image::base::Image;
|
||||
use paint_context::PaintContext;
|
||||
|
|
|
@ -26,8 +26,7 @@ use euclid::side_offsets::SideOffsets2D;
|
|||
use euclid::size::Size2D;
|
||||
use filters;
|
||||
use font_context::FontContext;
|
||||
use gfx_traits::color;
|
||||
use msg::compositor_msg::LayerKind;
|
||||
use gfx_traits::{color, LayerKind};
|
||||
use net_traits::image::base::{Image, PixelFormat};
|
||||
use std::default::Default;
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -15,11 +15,11 @@ use euclid::rect::Rect;
|
|||
use euclid::size::Size2D;
|
||||
use font_cache_task::FontCacheTask;
|
||||
use font_context::FontContext;
|
||||
use gfx_traits::{color, PaintListener, PaintMsg as ConstellationMsg};
|
||||
use gfx_traits::{color, LayerId, LayerKind, LayerProperties, PaintListener, PaintMsg as ConstellationMsg, ScrollPolicy};
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use layers::layers::{BufferRequest, LayerBuffer, LayerBufferSet};
|
||||
use layers::platform::surface::{NativeDisplay, NativeSurface};
|
||||
use msg::compositor_msg::{Epoch, FrameTreeId, LayerId, LayerKind, LayerProperties, ScrollPolicy};
|
||||
use msg::compositor_msg::{Epoch, FrameTreeId};
|
||||
use msg::constellation_msg::{ConstellationChan, Failure, PipelineId};
|
||||
use paint_context::PaintContext;
|
||||
use profile_traits::mem::{self, ReportsChan};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue