diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-05 14:01:07 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-24 14:57:10 +0200 |
commit | 7d1421bd83652ddbe81f536fb7935bc0f9bd75a9 (patch) | |
tree | 7669ed0ad1a6638d6eb13ee5d78e92eec9e3a135 /components/gfx/paint_thread.rs | |
parent | 86d65b60647c185e656e3ae607a3762e667974ad (diff) | |
download | servo-7d1421bd83652ddbe81f536fb7935bc0f9bd75a9.tar.gz servo-7d1421bd83652ddbe81f536fb7935bc0f9bd75a9.zip |
Move ChromeToPaintMsg to gfx_traits.
This allows compositing not to depend on gfx.
Diffstat (limited to 'components/gfx/paint_thread.rs')
-rw-r--r-- | components/gfx/paint_thread.rs | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index db86e62f69e..ed1d7568ea6 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -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, |