Skip to content

Commit

Permalink
Backed out changeset 71b7ef6e0ed8 (bug 1573649) for causing wrench bu…
Browse files Browse the repository at this point in the history
…ild bustages on svg-filter-offset-ref.yaml.

[wrupdater] From https://hg.mozilla.org/mozilla-central/rev/c9f306364c7d79c316cedb484da364944909a1a4
  • Loading branch information
aiakab authored and wrupdater committed Aug 15, 2019
1 parent 6e9e1a3 commit ce380c5
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 74 deletions.
4 changes: 0 additions & 4 deletions webrender/src/picture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1964,10 +1964,6 @@ impl PictureCompositeMode {
primitive.input.to_index(cur_index).map(|index| output_rects[index]).unwrap_or(picture_rect),
FilterPrimitiveKind::ComponentTransfer(ref primitive) =>
primitive.input.to_index(cur_index).map(|index| output_rects[index]).unwrap_or(picture_rect),
FilterPrimitiveKind::Offset(ref primitive) => {
let input_rect = primitive.input.to_index(cur_index).map(|index| output_rects[index]).unwrap_or(picture_rect);
input_rect.translate(primitive.offset * Scale::new(1.0))
},

FilterPrimitiveKind::Flood(..) => picture_rect,
};
Expand Down
3 changes: 0 additions & 3 deletions webrender/src/prim_store/picture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub enum FilterPrimitiveKey {
ColorMatrix(ColorSpace, [Au; 20], FilterPrimitiveInput),
DropShadow(ColorSpace, (VectorKey, Au, ColorU), FilterPrimitiveInput),
ComponentTransfer(ColorSpace, FilterPrimitiveInput, Vec<SFilterData>),
Offset(ColorSpace, FilterPrimitiveInput, VectorKey),
}

/// Represents a hashable description of how a picture primitive
Expand Down Expand Up @@ -176,8 +175,6 @@ impl From<Option<PictureCompositeMode>> for PictureCompositeKey {
}
FilterPrimitiveKind::ComponentTransfer(component_transfer) =>
FilterPrimitiveKey::ComponentTransfer(primitive.color_space, component_transfer.input, filter_data.clone()),
FilterPrimitiveKind::Offset(info) =>
FilterPrimitiveKey::Offset(primitive.color_space, info.input, info.offset.into()),
}
}).collect())
}
Expand Down
20 changes: 0 additions & 20 deletions webrender/src/render_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,26 +1467,6 @@ impl RenderTask {
render_tasks.add(task)
}
}
FilterPrimitiveKind::Offset(ref info) => {
let input_task_id = get_task_input(
&info.input,
filter_primitives,
render_tasks,
cur_index,
&outputs,
original_task_id,
primitive.color_space
);

let offset = info.offset * LayoutToWorldScale::new(1.0) * device_pixel_scale;
let offset_task = RenderTask::new_svg_filter_primitive(
vec![input_task_id],
content_size,
uv_rect_kind,
SvgFilterInfo::Offset(offset),
);
render_tasks.add(offset_task)
}
};
outputs.push(render_task_id);
}
Expand Down
9 changes: 0 additions & 9 deletions webrender_api/src/display_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,13 +837,6 @@ pub struct IdentityPrimitive {
pub input: FilterPrimitiveInput,
}

#[repr(C)]
#[derive(Clone, Copy, Debug, Default, Deserialize, PartialEq, Serialize, PeekPoke)]
pub struct OffsetPrimitive {
pub input: FilterPrimitiveInput,
pub offset: LayoutVector2D,
}

/// See: https://github.com/eqrion/cbindgen/issues/9
/// cbindgen:derive-eq=false
#[repr(C)]
Expand All @@ -859,7 +852,6 @@ pub enum FilterPrimitiveKind {
ColorMatrix(ColorMatrixPrimitive),
DropShadow(DropShadowPrimitive),
ComponentTransfer(ComponentTransferPrimitive),
Offset(OffsetPrimitive),
}

impl Default for FilterPrimitiveKind {
Expand All @@ -880,7 +872,6 @@ impl FilterPrimitiveKind {
FilterPrimitiveKind::Identity(..) |
FilterPrimitiveKind::Blend(..) |
FilterPrimitiveKind::ColorMatrix(..) |
FilterPrimitiveKind::Offset(..) |
// Component transfer's filter data is sanitized separately.
FilterPrimitiveKind::ComponentTransfer(..) => {}
}
Expand Down
1 change: 0 additions & 1 deletion wrench/reftests/filters/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ platform(linux,mac) == fuzzy(4,28250) svg-filter-drop-shadow-rotate.yaml svg-fil
platform(linux,mac) == svg-filter-blur-transforms.yaml svg-filter-blur-transforms.png
platform(linux,mac) == svg-filter-drop-shadow-on-viewport-edge.yaml svg-filter-drop-shadow-on-viewport-edge.png
platform(linux,mac) == svg-filter-drop-shadow-perspective.yaml svg-filter-drop-shadow-perspective.png
== svg-filter-offset.yaml svg-filter-offset-ref.yaml
== backdrop-filter-basic.yaml backdrop-filter-basic-ref.yaml
platform(linux,mac) == backdrop-filter-perspective.yaml backdrop-filter-perspective.png
11 changes: 0 additions & 11 deletions wrench/reftests/filters/svg-filter-offset-ref.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions wrench/reftests/filters/svg-filter-offset.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions wrench/src/yaml_frame_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,6 @@ fn write_filter_primitives(
yaml_node(&mut table, "type", Yaml::String("component-transfer".into()));
filter_input_node(&mut table, "in", component_transfer_primitive.input);
}
FilterPrimitiveKind::Offset(info) => {
yaml_node(&mut table, "type", Yaml::String("offset".into()));
filter_input_node(&mut table, "in", info.input);
vector_node(&mut table, "offset", &info.offset);
}
}
enum_node(&mut table, "color-space", filter_primitive.color_space);
filter_primitives.push(Yaml::Hash(table));
Expand Down
6 changes: 0 additions & 6 deletions wrench/src/yaml_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,12 +769,6 @@ impl YamlHelper for Yaml {
input: self["in"].as_filter_input().unwrap(),
})
}
"offset" => {
FilterPrimitiveKind::Offset(OffsetPrimitive {
input: self["in"].as_filter_input().unwrap(),
offset: self["offset"].as_vector().unwrap(),
})
}
_ => return None,
};

Expand Down

0 comments on commit ce380c5

Please sign in to comment.