forked from mirrors/gecko-dev
		
	 12f49cb702
			
		
	
	
		12f49cb702
		
	
	
	
	
		
			
			Source-Repo: https://github.com/servo/servo Source-Revision: 14bbe9d8729dece2d80bb651bca1c2eda13d0429 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : e37e34fddb2107725548a4af0b2bb1ba21d5d70e
		
			
				
	
	
		
			53 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| 
 | |
| #![deny(unsafe_code)]
 | |
| #![feature(box_syntax)]
 | |
| 
 | |
| extern crate euclid;
 | |
| extern crate gfx_traits;
 | |
| extern crate gleam;
 | |
| extern crate image;
 | |
| extern crate ipc_channel;
 | |
| #[macro_use]
 | |
| extern crate log;
 | |
| extern crate msg;
 | |
| extern crate net_traits;
 | |
| extern crate profile_traits;
 | |
| extern crate script_traits;
 | |
| extern crate servo_config;
 | |
| extern crate servo_geometry;
 | |
| extern crate servo_url;
 | |
| extern crate style_traits;
 | |
| extern crate time;
 | |
| extern crate webrender;
 | |
| extern crate webrender_traits;
 | |
| 
 | |
| pub use compositor_thread::CompositorProxy;
 | |
| pub use compositor::IOCompositor;
 | |
| use euclid::size::TypedSize2D;
 | |
| use ipc_channel::ipc::IpcSender;
 | |
| use msg::constellation_msg::PipelineId;
 | |
| use script_traits::{ConstellationControlMsg, LayoutControlMsg};
 | |
| use style_traits::PagePx;
 | |
| 
 | |
| mod compositor;
 | |
| pub mod compositor_thread;
 | |
| mod delayed_composition;
 | |
| mod touch;
 | |
| pub mod windowing;
 | |
| 
 | |
| pub struct SendableFrameTree {
 | |
|     pub pipeline: CompositionPipeline,
 | |
|     pub size: Option<TypedSize2D<f32, PagePx>>,
 | |
|     pub children: Vec<SendableFrameTree>,
 | |
| }
 | |
| 
 | |
| /// The subset of the pipeline that is needed for layer composition.
 | |
| #[derive(Clone)]
 | |
| pub struct CompositionPipeline {
 | |
|     pub id: PipelineId,
 | |
|     pub script_chan: IpcSender<ConstellationControlMsg>,
 | |
|     pub layout_chan: IpcSender<LayoutControlMsg>,
 | |
| }
 |