mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
removed unused constellation chan from render task
This commit is contained in:
parent
dc8e3cbf9b
commit
1f55db99bb
3 changed files with 1 additions and 10 deletions
|
@ -9,7 +9,6 @@ use azure::azure_hl::{B8G8R8A8, DrawTarget};
|
|||
use display_list::DisplayList;
|
||||
use servo_msg::compositor_msg::{RenderListener, IdleRenderState, RenderingRenderState, LayerBuffer};
|
||||
use servo_msg::compositor_msg::{LayerBufferSet};
|
||||
use servo_msg::constellation_msg::{ConstellationChan};
|
||||
use font_context::FontContext;
|
||||
use geom::matrix2d::Matrix2D;
|
||||
use geom::point::Point2D;
|
||||
|
@ -70,8 +69,6 @@ priv struct RenderTask<C> {
|
|||
|
||||
/// The layer to be rendered
|
||||
render_layer: Option<RenderLayer>,
|
||||
/// A channel to the constellation for -- just in case
|
||||
constellation_chan: ConstellationChan,
|
||||
/// Permission to send paint messages to the compositor
|
||||
paint_permission: bool,
|
||||
/// Cached copy of last layers rendered
|
||||
|
@ -83,19 +80,16 @@ impl<C: RenderListener + Owned> RenderTask<C> {
|
|||
port: Port<Msg>,
|
||||
compositor: C,
|
||||
opts: Opts,
|
||||
constellation_chan: ConstellationChan,
|
||||
profiler_chan: ProfilerChan) {
|
||||
let compositor = Cell::new(compositor);
|
||||
let opts = Cell::new(opts);
|
||||
let port = Cell::new(port);
|
||||
let constellation_chan = Cell::new(constellation_chan);
|
||||
let profiler_chan = Cell::new(profiler_chan);
|
||||
|
||||
do spawn {
|
||||
let compositor = compositor.take();
|
||||
let share_gl_context = compositor.get_gl_context();
|
||||
let opts = opts.take();
|
||||
let constellation_chan = constellation_chan.take();
|
||||
let profiler_chan = profiler_chan.take();
|
||||
|
||||
// FIXME: rust/#5967
|
||||
|
@ -111,7 +105,6 @@ impl<C: RenderListener + Owned> RenderTask<C> {
|
|||
share_gl_context: share_gl_context,
|
||||
render_layer: None,
|
||||
|
||||
constellation_chan: constellation_chan,
|
||||
paint_permission: false,
|
||||
last_paint_msg: None,
|
||||
};
|
||||
|
|
|
@ -23,7 +23,6 @@ use std::comm;
|
|||
use std::comm::{Chan, SharedChan, Port};
|
||||
use std::num::Orderable;
|
||||
use std::task;
|
||||
use std::util;
|
||||
use geom::matrix::identity;
|
||||
use geom::point::Point2D;
|
||||
use geom::size::Size2D;
|
||||
|
@ -289,7 +288,7 @@ impl CompositorTask {
|
|||
// Iterate over the children of the container layer.
|
||||
let mut current_layer_child = root_layer.first_child;
|
||||
|
||||
for new_layer_buffer_set.buffers.each |buffer| {
|
||||
for new_layer_buffer_set.buffers.iter().advance |buffer| {
|
||||
let width = buffer.rect.size.width as uint;
|
||||
let height = buffer.rect.size.height as uint;
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ impl Pipeline {
|
|||
render_port,
|
||||
compositor_chan.clone(),
|
||||
copy opts,
|
||||
constellation_chan.clone(),
|
||||
profiler_chan.clone());
|
||||
|
||||
LayoutTask::create(layout_port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue