Skip to content

Commit

Permalink
Bug 1509302 - Update webrender to commit 29dab25c587b38ecbf4713cda44e…
Browse files Browse the repository at this point in the history
…87b78846c7f6 (WR PR #3336). r=kats

servo/webrender#3336

Differential Revision: https://phabricator.services.mozilla.com/D12696

UltraBlame original commit: 76fb27eae36a4c9b9c01b2a71de2b535cf3d3643
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent 1c98635 commit c0e0340
Show file tree
Hide file tree
Showing 6 changed files with 349 additions and 85 deletions.
55 changes: 43 additions & 12 deletions gfx/webrender/src/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ prim_store
EdgeAaSegmentMask
ImageSource
PrimitiveInstanceKind
PrimitiveStore
}
;
use
Expand Down Expand Up @@ -6625,8 +6626,7 @@ Image
{
alpha_type
request
ref
opacity_binding
opacity_binding_index
ref
visible_tiles
.
Expand All @@ -6642,6 +6642,18 @@ is_empty
=
>
{
let
opacity_binding
=
ctx
.
prim_store
.
get_opacity_binding
(
opacity_binding_index
)
;
for
tile
in
Expand Down Expand Up @@ -6678,8 +6690,6 @@ alpha_type
get_shader_opacity
(
opacity_binding
.
current
)
)
{
Expand Down Expand Up @@ -6865,6 +6875,9 @@ resource_cache
gpu_cache
deferred_resolves
prim_instance
ctx
.
prim_store
)
{
let
Expand Down Expand Up @@ -8340,6 +8353,10 @@ prim_instance
:
&
PrimitiveInstance
prim_store
:
&
PrimitiveStore
)
-
>
Expand All @@ -8362,8 +8379,7 @@ alpha_type
request
ref
source
ref
opacity_binding
opacity_binding_index
.
.
}
Expand Down Expand Up @@ -8499,6 +8515,16 @@ cache_item
texture_id
)
;
let
opacity_binding
=
prim_store
.
get_opacity_binding
(
opacity_binding_index
)
;
Some
(
BrushBatchParameters
Expand Down Expand Up @@ -8546,8 +8572,6 @@ i32
get_shader_opacity
(
opacity_binding
.
current
)
]
cache_item
Expand Down Expand Up @@ -8871,14 +8895,23 @@ BrushKind
:
Solid
{
ref
opacity_binding
opacity_binding_index
.
.
}
=
>
{
let
opacity_binding
=
prim_store
.
get_opacity_binding
(
opacity_binding_index
)
;
Some
(
BrushBatchParameters
Expand All @@ -8900,8 +8933,6 @@ no_texture
get_shader_opacity
(
opacity_binding
.
current
)
0
0
Expand Down
26 changes: 4 additions & 22 deletions gfx/webrender/src/border.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ RenderTaskCacheKeyKind
}
;
use
smallvec
:
:
SmallVec
;
use
util
:
:
Expand Down Expand Up @@ -4042,13 +4036,9 @@ border_segments
:
&
mut
SmallVec
Vec
<
[
BorderSegmentInfo
;
8
]
>
brush_segments
:
Expand Down Expand Up @@ -5895,13 +5885,9 @@ border_segments
:
&
mut
SmallVec
Vec
<
[
BorderSegmentInfo
;
8
]
>
do_aa
:
Expand Down Expand Up @@ -6163,13 +6149,9 @@ border_segments
:
&
mut
SmallVec
Vec
<
[
BorderSegmentInfo
;
8
]
>
do_aa
:
Expand Down Expand Up @@ -6874,7 +6856,7 @@ let
mut
border_segments
=
SmallVec
Vec
:
:
new
Expand Down
10 changes: 4 additions & 6 deletions gfx/webrender/src/display_list_flattener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ prim_store
:
:
{
OpacityBinding
ScrollNodeAndClipChain
PictureIndex
register_prim_chase_id
OpacityBindingIndex
}
;
use
Expand Down Expand Up @@ -10672,14 +10672,12 @@ Vec
new
(
)
opacity_binding
opacity_binding_index
:
OpacityBinding
OpacityBindingIndex
:
:
new
(
)
INVALID
}
None
)
Expand Down
Loading

0 comments on commit c0e0340

Please sign in to comment.