mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Move ChromeToPaintMsg to gfx_traits.
This allows compositing not to depend on gfx.
This commit is contained in:
parent
86d65b6064
commit
7d1421bd83
9 changed files with 29 additions and 27 deletions
|
@ -15,14 +15,14 @@ use euclid::rect::Rect;
|
|||
use euclid::size::Size2D;
|
||||
use font_cache_thread::FontCacheThread;
|
||||
use font_context::FontContext;
|
||||
use gfx_traits::StackingContextId;
|
||||
use gfx_traits::{Epoch, FrameTreeId, LayerId, LayerKind, LayerProperties, PaintListener};
|
||||
use gfx_traits::{ChromeToPaintMsg, Epoch, LayerId, LayerKind, LayerProperties};
|
||||
use gfx_traits::{PaintListener, PaintRequest, StackingContextId};
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use layers::layers::{BufferRequest, LayerBuffer, LayerBufferSet};
|
||||
use layers::platform::surface::{NativeDisplay, NativeSurface};
|
||||
use msg::constellation_msg::{PanicMsg, PipelineId};
|
||||
use paint_context::PaintContext;
|
||||
use profile_traits::mem::{self, ReportsChan};
|
||||
use profile_traits::mem;
|
||||
use profile_traits::time;
|
||||
use rand::{self, Rng};
|
||||
use std::borrow::ToOwned;
|
||||
|
@ -325,14 +325,6 @@ impl LayerCreator {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct PaintRequest {
|
||||
pub buffer_requests: Vec<BufferRequest>,
|
||||
pub scale: f32,
|
||||
pub layer_id: LayerId,
|
||||
pub epoch: Epoch,
|
||||
pub layer_kind: LayerKind,
|
||||
}
|
||||
|
||||
pub enum Msg {
|
||||
FromLayout(LayoutToPaintMsg),
|
||||
FromChrome(ChromeToPaintMsg),
|
||||
|
@ -344,14 +336,6 @@ pub enum LayoutToPaintMsg {
|
|||
Exit,
|
||||
}
|
||||
|
||||
pub enum ChromeToPaintMsg {
|
||||
Paint(Vec<PaintRequest>, FrameTreeId),
|
||||
PaintPermissionGranted,
|
||||
PaintPermissionRevoked,
|
||||
CollectReports(ReportsChan),
|
||||
Exit,
|
||||
}
|
||||
|
||||
pub struct PaintThread<C> {
|
||||
id: PipelineId,
|
||||
_url: Url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue