Граф коммитов

422 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 3bf7ef2abf Bug 1505871. Fix comment to not trigger angle_shader_validation.rs.
angle_shader_validation.rs just checks that the number of "switch" and "default:" are the same number in the source file, even if they occur in comments.
2019-02-26 00:16:37 -06:00
Timothy Nikkel 78f0cf02be Bug 1505871. Work around a suspected shader miscompilation on Windows. r=gw
On Windows the vFuncs array is always 0 in the fragment shader. If we move the computation of the vFuncs array outside of the switch (so that it is computed for every type of shader, even when it is not needed) then it works.
2019-02-26 00:16:37 -06:00
Timothy Nikkel 6919a21fa6 Bug 1505871. Implementation of shaders. r=gw 2019-02-26 00:16:37 -06:00
Timothy Nikkel 487492593e Bug 1505871. Implement putting the required data in the gpu cache for component transfer. r=gw
For table/discrete we just create a lookup table for all 256 possible input values. We should probably switch to just computing the value in the shader, unless the list of value is really long.
2019-02-26 00:16:37 -06:00
Timothy Nikkel c0ef28ed8e Bug 1505871. Pass DataStores to prepare_for_render. r=gw
We need this to get get filter data from the intern table.
2019-02-26 00:16:37 -06:00
Timothy Nikkel 7a0fe66d40 Bug 1505871. Don't borrow frame_state.surface for the duration of prepare_for_render. r=gw
We need to call update on the filter data handle which needs to use frame_state (in a later patch), so we can't borrow across that call.
2019-02-26 00:16:36 -06:00
Timothy Nikkel 02ac32975f Bug 1505871. Implement the necessary things for interning of filter data. r=gw 2019-02-26 00:16:36 -06:00
Timothy Nikkel dad4e9d0b7 Bug 1505871. Implement yaml reader/writer for component transfer. r=jrmuizel 2019-02-26 00:16:36 -06:00
Timothy Nikkel f39f60fa91 Bug 1505871. Write component transfer filter data into the webrender display list bitstream. r=jrmuizel
The format for stacking contexts in the built display list goes from

PushStackingContext item
push_iter of Vec<FilterOp>

to

SetFilterOps item
push_iter of Vec<FilterOp>
1st SetFilterData item
push_iter of array of func types
push_iter funcR values
push_iter funcG values
push_iter funcB values
push_iter funcA values
.
.
.
nth SetFilterData item
push_iter of array of func types
push_iter funcR values
push_iter funcG values
push_iter funcB values
push_iter funcA values
PushStackingContext item

We need separate a SetFilterData item for each filter because we can't push_iter a variable sized thing.

When we iterate over the built display list to flatten it we work similarly to how gradients work with a SetGradientStops item before the actual gradient item. So when we see SetFilterOps or SetFilterData we use them to fill out values on the built display list iterator but don't those items return them to the iterator user and instead continue iterating until we hit the PushStackingContext item, at which point to the iterator consumer it appears as those the FilterOps and FilterDatas were on the PushStackingContext item. (This part is trickier too since we need a TempFilterData type that just holds ItemRange's until we get the actual bytes later.)

Do we need to clear cur_filters and cur_filter_data at some point to prevent them from getting ready by items for which they do not apply?
2019-02-26 00:16:36 -06:00
Timothy Nikkel 213203d8e5 Backed out changeset 90660632d641 2019-02-25 22:48:04 -06:00
Timothy Nikkel 736fc91b3f Backed out changeset def812790f5c 2019-02-25 22:47:54 -06:00
Timothy Nikkel 8238bfd239 Backed out changeset 11c9d5a64a30 2019-02-25 22:47:40 -06:00
Timothy Nikkel e4b483e186 Backed out changeset 1206e1a32e5f 2019-02-25 22:47:23 -06:00
Timothy Nikkel aac71db24c Bug 1505871. Don't borrow frame_state.surface for the duration of prepare_for_render. r=gw
We need to call update on the filter data handle which needs to use frame_state (in a later patch), so we can't borrow across that call.
2019-02-25 22:45:16 -06:00
Timothy Nikkel 22cf8be9b7 Bug 1505871. Implement the necessary things for interning of filter data. r=gw 2019-02-25 22:45:16 -06:00
Timothy Nikkel 24dc00068c Bug 1505871. Implement yaml reader/writer for component transfer. r=jrmuizel 2019-02-25 22:45:16 -06:00
Timothy Nikkel 5455bb5b62 Bug 1505871. Write component transfer filter data into the webrender display list bitstream. r=jrmuizel
The format for stacking contexts in the built display list goes from

PushStackingContext item
push_iter of Vec<FilterOp>

to

SetFilterOps item
push_iter of Vec<FilterOp>
1st SetFilterData item
push_iter of array of func types
push_iter funcR values
push_iter funcG values
push_iter funcB values
push_iter funcA values
.
.
.
nth SetFilterData item
push_iter of array of func types
push_iter funcR values
push_iter funcG values
push_iter funcB values
push_iter funcA values
PushStackingContext item

We need separate a SetFilterData item for each filter because we can't push_iter a variable sized thing.

When we iterate over the built display list to flatten it we work similarly to how gradients work with a SetGradientStops item before the actual gradient item. So when we see SetFilterOps or SetFilterData we use them to fill out values on the built display list iterator but don't those items return them to the iterator user and instead continue iterating until we hit the PushStackingContext item, at which point to the iterator consumer it appears as those the FilterOps and FilterDatas were on the PushStackingContext item. (This part is trickier too since we need a TempFilterData type that just holds ItemRange's until we get the actual bytes later.)

Do we need to clear cur_filters and cur_filter_data at some point to prevent them from getting ready by items for which they do not apply?
2019-02-25 22:45:15 -06:00
Kartikaya Gupta c366cdefb9 Bug 1528987 - Send the gecko scroll offsets for scrollframes to WR. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D20667

--HG--
extra : moz-landing-system : lando
2019-02-21 21:06:25 +00:00
Glenn Watson 9ef53fde87 Bug 1529378 - Corruption on Google Calendar time period selector. r=kvark
This bug occurs under the following conditions:
 - The clip chain instance has multiple clip items.
 - The first item in the clip chain is a clip rectangle, with:
   - ClipMode::Clip
   - Is in the same coordinate system as the primitive.

In this case, the code would skip adding the clip rect to the
mask (due to the same coord system). However, the logic that
determines whether to render subsequent masks with blend disabled
or multiplicative blend was only considering the index of the
clip item in the clip chain. In this case, these masks would
get added to the blend enabled batches, but the first clip mask
which would have written the initial mask values was skipped.

The end result was that the subsequent clip masks would be
blending with uninitialized render target contents from a previous
frame.

This patch changes the logic to track when the first clip mask
has actually been added to the batch, rather than relying on
the index. In this case, it means that the rounded rect mask
will get drawn in the blend disabled path, writing the correct
mask values without blending with the existing render target contents.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 03:05:59 +00:00
Kartikaya Gupta 3797456260 Bug 1523080 - Don't apply the pipeline clip to display items inside a SC with a clip. r=kvark
Without this patch, if we got a display item with the root clip id, we
would always clip that display item with the root clip of the enclosing
pipeline. However, this violates the documented semantics on
ClipId::root() which states that it effectively does no clipping.
Specifically, it could end up doing clipping if the display item was
part of a scrollframe that was scrolled such that the display item
extended beyond the enclosing pipeline.

This patch adds an extra argument to some of the flattening functions -
the flag is true when recursing the DL between a pipeline item and the
first stacking context that has a clip. For these items, the pipeline
clip is applied. Once inside the stacking context, the pipeline clip is
not applied.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 20:40:05 +00:00
Csoregi Natalia 208f1b790a Backed out 2 changesets (bug 1529117) for failures on webdriver/tests/new_session/invalid_capabilities.py. CLOSED TREE
Backed out changeset 27882e7ca2a9 (bug 1529117)
Backed out changeset fcfafe134f70 (bug 1529117)
2019-02-20 18:20:49 +02:00
Kartikaya Gupta 15cd3ce2f6 Bug 1529117 - Bump serde_derive to branch from 1.0.88. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D20460

--HG--
extra : moz-landing-system : lando
2019-02-20 13:58:32 +00:00
Nicolas Silva a1a6e98c02 Bug 1476368 - Preallocate a few more items in the render task tree. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D20193

--HG--
extra : moz-landing-system : lando
2019-02-19 19:17:31 +00:00
Nicolas Silva cb6ed5e452 Bug 1527884 - Make webrender_build publishable. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D20134

--HG--
extra : moz-landing-system : lando
2019-02-19 16:06:01 +00:00
Glenn Watson 9314a751d7 Bug 1491929 - Text is rasterized at the wrong resolution. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D20276

--HG--
extra : moz-landing-system : lando
2019-02-19 20:25:40 +00:00
Glenn Watson 702c53489e Bug 1528157 - Optimize GPU time for clip mask generation. r=kvark
On integrated GPUs, we are typically completely bound by memory
bandwidth and the number of pixels that get written / blended.

On real world pages, it's often the case that we end up with
clip tasks that are long in one dimension but not the other, due
to box-shadow edges, clip mask segments etc. When this occurs,
the logic that tries to get a small 'used_rect' to clear targets
to fails, since the union of those ends up being a very large
rect that covers (most of) the surface. This can cost a lot of
GPU time on some integrated chipsets.

Instead, it appears to be much faster to issue multiple clears,
one for each clip mask region, which is typically < 10% of the
surface we were clearing previously.

However, we can also restore an old optimization we used to have
which means we can skip clears altogether in the common case. The
first mask in a clip task will write to all the pixels in the mask,
so we can draw that with blending disabled (also a significant win
on integrated GPUs) and skip the clear in these cases. With this
functionality in place, the multiplicative blend mode is only
enabled for any clips other than the first in a mask (this is
quite a rare case - most clip tasks end up with a single mask).

On low end GPUs driving a 4k screen, I've measured GPU wins of up
to 5 ms/frame on some real world pages with this change.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 20:52:27 +00:00
Glenn Watson 9214b9fd29 Bug 1528866 - Specify device pixel ratio per render task. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D20245

--HG--
extra : moz-landing-system : lando
2019-02-19 09:11:09 +00:00
sotaro 087c420a72 Bug 1526213 - Enable WebRenderTextureHostWrapper for canvas r=nical
By using WebRenderTextureHostWrapper for canvas, we could avoid triggering frame build on WebRender backend if WebRenderTextureHostWrapper is only change.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:33:32 +00:00
Nicolas Silva b92eadafcf Bug 1476368 - Preallocate the render task tree. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D19916

--HG--
extra : moz-landing-system : lando
2019-02-15 16:57:43 +00:00
Dzmitry Malyshau 78eba476ed Bug 1527325 - Refactor webrender_api includes r=gw,nical
Differential Revision: https://phabricator.services.mozilla.com/D19499

--HG--
extra : moz-landing-system : lando
2019-02-15 18:59:31 +00:00
Noemi Erli 0e4944369a Backed out changeset 541f044e3e7b (bug 1527325) for webrender bustage CLOSED TREE 2019-02-15 20:14:54 +02:00
Dzmitry Malyshau 1a4b75a034 Bug 1527325 - Refactor webrender_api includes r=gw,nical
Differential Revision: https://phabricator.services.mozilla.com/D19499

--HG--
extra : moz-landing-system : lando
2019-02-15 17:39:40 +00:00
Nicolas Silva faade4c98a Bug 1527884 - Make wr_malloc_size_of publishable. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D19942

--HG--
extra : moz-landing-system : lando
2019-02-15 15:47:00 +00:00
Nicolas Silva b32dce70e6 Bug 1527884 - WebRender version 0.60.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D19796

--HG--
extra : moz-landing-system : lando
2019-02-15 02:54:40 +00:00
Kartikaya Gupta ca0bceb4a8 Bug 1516568 - Fuzz a couple of mac reftests. r=gw
For some reason running these via cross-compiled wrench in Mozilla
automation produces a few pixels difference.

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

--HG--
extra : source : f06721b552a819e4d2456f1c31d62c782d9a42cb
2019-02-15 01:32:10 +00:00
Kartikaya Gupta c5e6c813f1 Bug 1516568 - Update WR mac CI scripts to allow cross-compiling. r=kvark
This introduces some env vars to allow running cross-compiled
binaries instead of running things on the builder. Additionally
the `cargo test --features "ipc"` check is modified to be `check`
instead since there are no actual tests being run by that command.
The only thing we lose is a rustdoc example check but we are
checking that on Linux anyway so doing it for Mac is redundant.

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

--HG--
extra : source : ee403c79877e028c58fa9091dd360fe50a80af37
2019-02-15 01:32:06 +00:00
Kartikaya Gupta e537a097f1 Bug 1516568 - Update osmesa-src to includes servo/osmesa-src#33 for cross-compiling support. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D19366

--HG--
extra : source : 8990eef6c31e6071a433f4007c08491dadb2ab5b
2019-02-15 01:32:02 +00:00
Dorel Luca b73b2c4f67 Backed out 7 changesets (bug 1516568) for Docker and Toolchain failures. CLOSED TREE
Backed out changeset 79120d13e713 (bug 1516568)
Backed out changeset 028c0ed368b8 (bug 1516568)
Backed out changeset f06721b552a8 (bug 1516568)
Backed out changeset ee403c79877e (bug 1516568)
Backed out changeset 8990eef6c31e (bug 1516568)
Backed out changeset f6413e576a21 (bug 1516568)
Backed out changeset e9f887f489e5 (bug 1516568)
2019-02-15 05:16:55 +02:00
Kartikaya Gupta 7fdac6c6fe Bug 1516568 - Fuzz a couple of mac reftests. r=gw
For some reason running these via cross-compiled wrench in Mozilla
automation produces a few pixels difference.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 01:32:10 +00:00
Kartikaya Gupta a79bc23095 Bug 1516568 - Update WR mac CI scripts to allow cross-compiling. r=kvark
This introduces some env vars to allow running cross-compiled
binaries instead of running things on the builder. Additionally
the `cargo test --features "ipc"` check is modified to be `check`
instead since there are no actual tests being run by that command.
The only thing we lose is a rustdoc example check but we are
checking that on Linux anyway so doing it for Mac is redundant.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 01:32:06 +00:00
Kartikaya Gupta aab00418a2 Bug 1516568 - Update osmesa-src to includes servo/osmesa-src#33 for cross-compiling support. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D19366

--HG--
extra : moz-landing-system : lando
2019-02-15 01:32:02 +00:00
Dzmitry Malyshau bc15820709 Bug 1527498 - Separate picture texture cache r=gw
Manage the texture space for picture tiles separately inside the texture cache.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 14:20:15 +00:00
Bogdan Tara 3ccaa3b9ba Backed out changeset e23608ddeac0 (bug 1527884) for wrench bustages CLOSED TREE 2019-02-14 16:43:24 +02:00
Nicolas Silva 3d93798308 Bug 1527884 - WebRender version 0.60.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D19780

--HG--
extra : moz-landing-system : lando
2019-02-14 13:40:51 +00:00
Dzmitry Malyshau f8d9851e68 Bug 1527498 - WR texture cache code cleanup r=jrmuizel
This is a preparatory change that can be useful by itself:
  - use match on EntryKind to allow safe expansion
  - avoid code duplication in get()
  - fix some comments

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

--HG--
extra : moz-landing-system : lando
2019-02-13 21:49:55 +00:00
Glenn Watson e44f3a225c Bug 1527522 - Add external hooks to WR to allow integration with the Gecko profiler. r=kvark,emilio
Differential Revision: https://phabricator.services.mozilla.com/D19611

--HG--
extra : moz-landing-system : lando
2019-02-13 21:46:32 +00:00
Cosmin Sabou 01b4b3830e Backed out changeset bc69bea83b66 (bug 1527522) for wrench bustages. CLOSED TREE 2019-02-13 09:03:44 +02:00
Glenn Watson 6bb5798bee Bug 1527522 - Add external hooks to WR to allow integration with the Gecko profiler. r=kvark,emilio
Differential Revision: https://phabricator.services.mozilla.com/D19611

--HG--
extra : moz-landing-system : lando
2019-02-13 04:02:02 +00:00
Coroiu Cristina 92656e7b34 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-02-12 18:35:15 +02:00
Coroiu Cristina f81d1ce91c Merge inbound to mozilla-central a=merge 2019-02-12 18:28:37 +02:00
Oana Pop Rus c603510fa9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-12 12:12:06 +02:00
Nicolas Silva 84c6dd61c6 Bug 1509643 - Add a wrench test. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D18948
2019-02-12 10:34:19 +01:00
Glenn Watson d89bce1d49 Bug 1526856 - Reduce GPU cache uploads a bit. r=kvark,nical
By retaining a global GPU cache handle for a dummy image block, we
can reduce the per-frame GPU cache uploads quite a bit, which
helps with compositor time.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 06:23:01 +00:00
Glenn Watson 1870b572f5 Bug 1526504 - border-style is not drawn with double r=emilio
The WR double style border shader has a condition to check if the
widths of the edges are too small to apply the style, in which case
it draws the border segment as solid. However, the check was
incorrectly skipping when the width of the inner / outer edge
was exactly one pixel.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 01:20:50 +00:00
Dzmitry Malyshau 941e6a2a63 Bug 1526235 - WR draw image tiles as segments r=gw,nical
We are currently drawing tiles as separate primitives. This doesn't work well for
masking out edge AA between tiles, since they aren't aware of each other.

The change switches image tiles to be drawn as segments sharing the same header.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 15:38:12 +00:00
Csoregi Natalia 338f679cf8 Backed out changeset 6e756f4116ee (bug 1526856) for bustage due to gfx/wr/webrender/src/frame_builder.rs. CLOSED TREE 2019-02-11 22:59:46 +02:00
Glenn Watson 56ceb5073a Bug 1526856 - Reduce GPU cache uploads a bit. r=kvark,nical
By retaining a global GPU cache handle for a dummy image block, we
can reduce the per-frame GPU cache uploads quite a bit, which
helps with compositor time.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 20:44:57 +00:00
Dzmitry Malyshau 19e28f4a85 Bug 1526593 - WR capture frame builder state r=gw
Saves a whole lot of useful data to peek in "builder-X-Y.ron"

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:54:19 +00:00
Dzmitry Malyshau fa4942c8fe Bug 1524797 - Enable non-screen rasterization of the plane splits r=gw
We used to hard-code the raster spatial node of plane splits to the root.
Now we are using the actual root during batching.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:59:47 +00:00
Nicolas Silva ea955a3c08 Bug 1523495 - Reftests adjustments. r=gw,kats,nical
Differential Revision (1): https://phabricator.services.mozilla.com/D18938
Differential Revision (2): https://phabricator.services.mozilla.com/D18854

--HG--
extra : histedit_source : 6d23aa08b25a7d41bf036c0cfccd2acaf00b24d7
2019-02-07 11:32:53 +01:00
Glenn Watson 51d033a6e2 Bug 1527233 - Remove unused fields from PictureContext and PictureState. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D19462

--HG--
extra : moz-landing-system : lando
2019-02-12 08:56:44 +00:00
Nicolas Silva 0351727ed2 Bug 1523495 - Adjust blur target sizes to avoid down-scaling artifacts. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D18855
2019-02-06 18:13:28 +01:00
Nicolas Silva f7b60f1a61 Bug 1523495 - Adjust shadow blur target sizes to avoid down-scaling artifacts. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D18856
2019-02-06 16:08:24 +01:00
Sam Rijs f48b9f973d Bug 1526769 - always initialize local_transform to the identity matrix r=nical
[wrupdater] From https://github.com/servo/webrender/pull/3547

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

--HG--
extra : moz-landing-system : lando
2019-02-11 09:58:50 +00:00
Oana Pop Rus 03ebbdab95 Merge inbound to mozilla-central. a=merge 2019-02-08 11:53:37 +02:00
Razvan Maries 8add624474 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-02-08 06:26:00 +02:00
Glenn Watson 14a75ee1b7 Bug 1525741 - Support animating yaml files in wrench. r=kvark
Add support for supplying a keyframe file to animate a wrench
yaml file with.

For now, the keyframe animation file must supply a keyframe for
every frame. In future, we may expand this to allow specifying
interpolation ranges.

For now, this is for development purposes only - however we can
easily extend this to support animated reftests in the future.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 18:03:59 +00:00
Csoregi Natalia 877e193c08 Backed out changeset 3ed3848d7631 (bug 1509643) for webrender tidy bustage. CLOSED TREE 2019-02-07 20:57:27 +02:00
Nicolas Silva b0949ebd60 Bug 1509643 - Add a wrench test. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D18948

--HG--
extra : moz-landing-system : lando
2019-02-07 13:19:42 +00:00
Glenn Watson 0357f500c0 Bug 1525740 - Visual artifacts in add-on menu with webrender enabled on mac intel. r=jrmuizel
The existing picture caching code in WR assumes that the tiles are being
drawn into the main framebuffer. This is true to the main content frame,
however it's not the case for all popup windows. In the case of popup
windows on mac, they have a rounded rect clip, which results in a surface
being used. This breaks some assumptions in the picture caching code.

The long term fix involves supporting picture caching on surfaces. However,
we don't want picture caching on for non-content windows anyway (due to
wasting texture memory), so for now we will simply disable picture cache
composite modes if they are being drawn on a non-root surface.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 15:42:06 +00:00
Andrew Osmond 6cba1775c3 Bug 1453935 - Ensure that we snap within the visible rect with WebRender. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18869
2019-02-07 18:05:43 -05:00
Andreea Pavel 7e3beb59f7 Backed out changeset 87ad4b91e29f (bug 1453935) for reftest failures on a CLOSED TREE 2019-02-08 00:45:29 +02:00
Andrew Osmond fa36639a3b Bug 1453935 - Ensure that we snap within the visible rect with WebRender. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18869
2019-02-07 15:26:54 -05:00
Dzmitry Malyshau 5c7daec3ac Bug 1524797 - WR: rework the relative transform query on a clip-scroll tree r=gw
This change rewords get_relative_transform and assotiated pieces of logic,
so that we flatten the transforms at preserve-3d context boundaries.

It addresses a problem found by 1524797 but doesn't resolve the bug yet (!).
There is another issue likely contributing here, and we can treat this PR
as WIP and not merge until the case is completely resolved.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 15:05:01 +00:00
Dzmitry Malyshau 4d33ea2da4 Bug 1530576 - WR track vao bindings better r=gw
this change makes sure that bindings are always synced.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 06:30:44 +00:00
Dzmitry Malyshau 11ec852e1a Bug 1522015 - WR don't panic on non-mappable clip rect r=gw
Differential Revision: https://phabricator.services.mozilla.com/D18846

--HG--
extra : moz-landing-system : lando
2019-02-06 19:51:30 +00:00
Glenn Watson d8ff6b6597 Bug 1525500 - Add a zoom debugging widget in webrender. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D18776

--HG--
extra : moz-landing-system : lando
2019-02-06 10:20:39 +00:00
Glenn Watson 136f478349 Bug 1525497 - Fix laggy event handling in wrench. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D18775

--HG--
extra : moz-landing-system : lando
2019-02-06 09:20:03 +00:00
Glenn Watson 43dfba16ac Bug 1524385 - Set the current clip chain on the stacking context item. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18527

--HG--
extra : moz-landing-system : lando
2019-02-06 04:35:37 +00:00
Dzmitry Malyshau bbf4f1218b Bug 1525087 - Plane split dependency update to 0.13.5 r=kats
Update to have https://github.com/servo/plane-split/pull/27 included

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

--HG--
extra : moz-landing-system : lando
2019-02-05 15:28:52 +00:00
Dorel Luca 0890a752bc Backed out changeset 553538a675ec (bug 1525087) for causing Wrench failure. CLOSED TREE 2019-02-05 01:29:13 +02:00
Dzmitry Malyshau ead2cc5bf9 Bug 1525087 - Plane split dependency update to 0.13.5 r=kats
Update to have https://github.com/servo/plane-split/pull/27 included

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

--HG--
extra : moz-landing-system : lando
2019-02-04 20:00:27 +00:00
Sam Rijs 303477293e Bug 1525032 - use switch statement for text snapping decision r=lsalzman
[wrupdater] From https://github.com/servo/webrender/pull/3540

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

--HG--
extra : moz-landing-system : lando
2019-02-04 16:37:12 +00:00
Emilio Cobos Álvarez 3d4396cce6 Bug 1524822 - Fix warnings with rust 1.34+. r=jrmuizel
There's some new limited const fn support in stable, and this is the recommended
way to initialize atomics now.

If this for some reason doesn't compile in all platforms / versions we support
I'll just sprinkle some #[allow(deprecated)] instead.

Also, cargo changes the output of Cargo.lock, see
https://github.com/rust-lang/cargo/issues/6180. So also update those comments.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 03:20:52 +00:00
Dzmitry Malyshau 8c617a84d2 Bug 1523347 - Plane-split update to 0.13.4 r=kats
new version includes necessary quality fixes for plane-splitting

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

--HG--
extra : moz-landing-system : lando
2019-02-02 04:11:25 +00:00
Glenn Watson 803eadae41 Bug 1523882 - Rework snapping logic in clip mask generate to fix uneven box shadows. r=kvark,nical
Differential Revision: https://phabricator.services.mozilla.com/D18060

--HG--
extra : moz-landing-system : lando
2019-02-01 23:24:53 +00:00
Oana Pop Rus fa24444292 Merge autoland to mozilla-central. a=merge 2019-02-01 11:32:06 +02:00
Noemi Erli b74da84051 Backed out changeset e6f1ffb7119f (bug 1523882) per dev's request for causing major perf regression a=backout 2019-02-01 08:56:22 +02:00
Dzmitry Malyshau 63d7fc4dcd Bug 1515932 - WR fix establish_raster_root boolean on a picture r=gw
This is a follow-up to https://phabricator.services.mozilla.com/D18258
which updates establish_raster_root boolean. It affects the perspective interpolation
of brushes.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 02:23:15 +00:00
Dzmitry Malyshau e43c96e640 Bug 1515932 - WR rasterization root fall-back r=gw
This is a follow-up to https://phabricator.services.mozilla.com/D16560

Previously, we had a conservative estimation of the local size based on the footprint
of the screen onto the potential raster root. This was too conservative in general,
and in some cases it wasn't conservative enough, since with filters we can have areas
needed in local space that don't necessarily project on the screen.

This change is doing an exact check for the surface size after we compute it, and
falls back to the parent raster root accordingly.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 21:30:32 +00:00
Glenn Watson e23265ad97 Bug 1523882 - Rework snapping logic in clip mask generate to fix uneven box shadows. r=kvark,nical
Differential Revision: https://phabricator.services.mozilla.com/D18060

--HG--
extra : moz-landing-system : lando
2019-01-31 20:18:18 +00:00
shindli 4db94822bd Backed out changeset 86daa5d406b6 (bug 1523882) for wrench bustage in reftests/boxshadow/box-shadow-huge-radius.png CLOSED TREE 2019-01-31 22:02:27 +02:00
Glenn Watson 165f400dbd Bug 1523882 - Rework snapping logic in clip mask generate to fix uneven box shadows. r=kvark,nical
Differential Revision: https://phabricator.services.mozilla.com/D18060

--HG--
extra : moz-landing-system : lando
2019-01-31 19:39:02 +00:00
Jamie Nicol 74e9823383 Bug 1496540 - Handle overlapping border corners in webrender r=gw
When some of a border's corners have a border-radius, and that radius
is larger than the sum of the border width and element size, then it
results in the corners of the border overlapping. Webrender draws
borders by rasterizing each segment individually in to the cache, then
compositing them together. In this overlapping case, this has 2
problems:

a) we composite overlapping segments on top of eachother
b) corner segments are not correctly clipped to the curve of the
   overlapping adjacent corners

This patch allows corner segments to be clipped by their adjacent
corners. We provide the outer corner position and radii of the
adjacent corners to the border shader, which then applies those clips,
if required, along with the segment's own corner clip when rasterizing
the segment.

As the adjacent corners now affect the result of the cached segment,
they are added to the cache key.

We continue to rasterize the entire segment in to the cache as before,
but now modify the local rect and texel rect of the BrushSegment so
that it only composites the subportion of the corner segment which
does not overlap with the opposite edges of the border.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 18:31:47 +00:00
Narcis Beleuzu 8707bfb5f2 Backed out changeset 25ca68e7836e (bug 1523882) for wrench bustages on boxshadow-spread-only-ref.png. CLOSED TREE 2019-01-31 11:49:12 +02:00
Glenn Watson 8844b8b1c8 Bug 1523882 - Rework snapping logic in clip mask generate to fix uneven box shadows. r=kvark,nical
Differential Revision: https://phabricator.services.mozilla.com/D18060

--HG--
extra : moz-landing-system : lando
2019-01-31 09:02:41 +00:00
Narcis Beleuzu 5555771b75 Backed out changeset 869fbaef1042 (bug 1524117) for wrench bustages on canvas.yaml. CLOSED TREE 2019-01-31 10:22:54 +02:00
Matt Woodrow 61569917d1 Bug 1524117 - Skip mix-blend mode operators in WebRender if we're sure they won't have any effect. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D18157

--HG--
extra : moz-landing-system : lando
2019-01-31 06:59:07 +00:00
Glenn Watson 6df4e561ff Bug 1524149 - Fix origin when adding tiled clip masks. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18173

--HG--
extra : moz-landing-system : lando
2019-01-31 04:14:24 +00:00
Dzmitry Malyshau 5a351be647 Bug 1521656 - WR switch image UV quad coordinates into homogeneous space r=gw
For screen-space rasterized images, we provide the shader with the
    UV corners of an image. The shaders then interpolate between the corners
    as an intermediate step of finding their UV to assign to a vertex.

    When the transformation is perspective, the corners stop being
    representative in real screen space, and the old code didn't handle the
    case of a corner being out of the positive hemisphere. This change
    doesn't do perspective division on Rust side and defers this to the
    shader, which can do division *after* interpolation between corners.

    This change makes us handle the near plane better and resolves clipping
    problems with perspective-interpolated images that occured due to
    precision issues of perspective divided corners.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 02:50:38 +00:00