mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove the unused cpu_painting field of CompositorData
This commit is contained in:
parent
514eaf4610
commit
8cab8d7311
2 changed files with 0 additions and 9 deletions
|
@ -366,7 +366,6 @@ impl IOCompositor {
|
|||
};
|
||||
let new_compositor_data = CompositorData::new_root(root_pipeline,
|
||||
layer_properties.epoch,
|
||||
self.opts.cpu_painting,
|
||||
layer_properties.background_color);
|
||||
let new_root = Rc::new(Layer::new(layer_properties.rect,
|
||||
self.opts.tile_size,
|
||||
|
|
|
@ -37,9 +37,6 @@ pub struct CompositorData {
|
|||
/// Whether an ancestor layer that receives scroll events moves this layer.
|
||||
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
|
||||
pub unrendered_color: Color,
|
||||
|
||||
|
@ -58,7 +55,6 @@ impl CompositorData {
|
|||
pub fn new(pipeline: CompositionPipeline,
|
||||
layer_id: LayerId,
|
||||
epoch: Epoch,
|
||||
cpu_painting: bool,
|
||||
wants_scroll_events: WantsScrollEventsFlag,
|
||||
scroll_policy: ScrollPolicy,
|
||||
unrendered_color: Color)
|
||||
|
@ -69,7 +65,6 @@ impl CompositorData {
|
|||
scroll_offset: TypedPoint2D(0f32, 0f32),
|
||||
wants_scroll_events: wants_scroll_events,
|
||||
scroll_policy: scroll_policy,
|
||||
cpu_painting: cpu_painting,
|
||||
unrendered_color: unrendered_color,
|
||||
epoch: epoch,
|
||||
}
|
||||
|
@ -77,12 +72,10 @@ impl CompositorData {
|
|||
|
||||
pub fn new_root(pipeline: CompositionPipeline,
|
||||
epoch: Epoch,
|
||||
cpu_painting: bool,
|
||||
unrendered_color: Color) -> CompositorData {
|
||||
CompositorData::new(pipeline,
|
||||
LayerId::null(),
|
||||
epoch,
|
||||
cpu_painting,
|
||||
WantsScrollEvents,
|
||||
FixedPosition,
|
||||
unrendered_color)
|
||||
|
@ -96,7 +89,6 @@ impl CompositorData {
|
|||
let new_compositor_data = CompositorData::new(layer.extra_data.borrow().pipeline.clone(),
|
||||
layer_properties.id,
|
||||
layer_properties.epoch,
|
||||
layer.extra_data.borrow().cpu_painting,
|
||||
DoesntWantScrollEvents,
|
||||
layer_properties.scroll_policy,
|
||||
layer_properties.background_color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue