mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #16113 - glennw:update-wr-opaque-opt, r=mrobinson
Update WR (opaque rect optimization, stacking context culling). <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16113) <!-- Reviewable:end -->
This commit is contained in:
commit
3b79bc2582
8 changed files with 32 additions and 38 deletions
|
@ -567,7 +567,8 @@ impl<'a> CanvasPaintThread<'a> {
|
|||
offset: 0,
|
||||
is_opaque: false,
|
||||
},
|
||||
element.into());
|
||||
element.into(),
|
||||
None);
|
||||
|
||||
let data = CanvasImageData {
|
||||
image_key: self.webrender_image_key,
|
||||
|
|
|
@ -261,7 +261,8 @@ impl WebGLPaintThread {
|
|||
offset: 0,
|
||||
is_opaque: false,
|
||||
},
|
||||
pixels.clone());
|
||||
pixels.clone(),
|
||||
None);
|
||||
|
||||
let image_data = CanvasImageData {
|
||||
image_key: image_key,
|
||||
|
|
|
@ -404,10 +404,6 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
let stacking_context = &item.stacking_context;
|
||||
debug_assert!(stacking_context.context_type == StackingContextType::Real);
|
||||
|
||||
let clip = builder.new_clip_region(&stacking_context.overflow.to_rectf(),
|
||||
vec![],
|
||||
None);
|
||||
|
||||
let transform = stacking_context.transform.map(|transform| {
|
||||
LayoutTransform::from_untyped(&transform).into()
|
||||
});
|
||||
|
@ -417,7 +413,6 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
|
||||
builder.push_stacking_context(stacking_context.scroll_policy,
|
||||
stacking_context.bounds.to_rectf(),
|
||||
clip,
|
||||
stacking_context.z_index,
|
||||
transform,
|
||||
perspective,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue