Remove the unused cpu_painting field of CompositorData

This commit is contained in:
Cameron Zwarich 2014-07-19 20:14:41 -07:00
parent 514eaf4610
commit 8cab8d7311
2 changed files with 0 additions and 9 deletions

View file

@ -366,7 +366,6 @@ impl IOCompositor {
}; };
let new_compositor_data = CompositorData::new_root(root_pipeline, let new_compositor_data = CompositorData::new_root(root_pipeline,
layer_properties.epoch, layer_properties.epoch,
self.opts.cpu_painting,
layer_properties.background_color); layer_properties.background_color);
let new_root = Rc::new(Layer::new(layer_properties.rect, let new_root = Rc::new(Layer::new(layer_properties.rect,
self.opts.tile_size, self.opts.tile_size,

View file

@ -37,9 +37,6 @@ pub struct CompositorData {
/// Whether an ancestor layer that receives scroll events moves this layer. /// Whether an ancestor layer that receives scroll events moves this layer.
pub scroll_policy: ScrollPolicy, pub scroll_policy: ScrollPolicy,
/// True if CPU rendering is enabled, false if we're using GPU rendering.
pub cpu_painting: bool,
/// The color to use for the unrendered-content void /// The color to use for the unrendered-content void
pub unrendered_color: Color, pub unrendered_color: Color,
@ -58,7 +55,6 @@ impl CompositorData {
pub fn new(pipeline: CompositionPipeline, pub fn new(pipeline: CompositionPipeline,
layer_id: LayerId, layer_id: LayerId,
epoch: Epoch, epoch: Epoch,
cpu_painting: bool,
wants_scroll_events: WantsScrollEventsFlag, wants_scroll_events: WantsScrollEventsFlag,
scroll_policy: ScrollPolicy, scroll_policy: ScrollPolicy,
unrendered_color: Color) unrendered_color: Color)
@ -69,7 +65,6 @@ impl CompositorData {
scroll_offset: TypedPoint2D(0f32, 0f32), scroll_offset: TypedPoint2D(0f32, 0f32),
wants_scroll_events: wants_scroll_events, wants_scroll_events: wants_scroll_events,
scroll_policy: scroll_policy, scroll_policy: scroll_policy,
cpu_painting: cpu_painting,
unrendered_color: unrendered_color, unrendered_color: unrendered_color,
epoch: epoch, epoch: epoch,
} }
@ -77,12 +72,10 @@ impl CompositorData {
pub fn new_root(pipeline: CompositionPipeline, pub fn new_root(pipeline: CompositionPipeline,
epoch: Epoch, epoch: Epoch,
cpu_painting: bool,
unrendered_color: Color) -> CompositorData { unrendered_color: Color) -> CompositorData {
CompositorData::new(pipeline, CompositorData::new(pipeline,
LayerId::null(), LayerId::null(),
epoch, epoch,
cpu_painting,
WantsScrollEvents, WantsScrollEvents,
FixedPosition, FixedPosition,
unrendered_color) unrendered_color)
@ -96,7 +89,6 @@ impl CompositorData {
let new_compositor_data = CompositorData::new(layer.extra_data.borrow().pipeline.clone(), let new_compositor_data = CompositorData::new(layer.extra_data.borrow().pipeline.clone(),
layer_properties.id, layer_properties.id,
layer_properties.epoch, layer_properties.epoch,
layer.extra_data.borrow().cpu_painting,
DoesntWantScrollEvents, DoesntWantScrollEvents,
layer_properties.scroll_policy, layer_properties.scroll_policy,
layer_properties.background_color); layer_properties.background_color);