Commit Graph

860 Commits

Author SHA1 Message Date
Andreea Pavel
4fea4aeb28 Merge mozilla-central to autoland. on a CLOSED TREE 2019-05-01 19:05:19 +03:00
Nicolas Silva
798d69cc03 Bug 1533735 - Refactor render task pass assignment in preparation for the render graph work. r=gw,kvark
In addition, batch together render tasks for the cached render tasks.

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

--HG--
extra : source : 1b80e184b0bd6324ea62d1e38b2061da2b96a867
2019-04-29 17:53:00 +02:00
Kartikaya Gupta
d10394a6c3 Bug 1548092 - Fix improper alpha value in yaml reftest. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D29402

--HG--
extra : moz-landing-system : lando
2019-04-30 21:00:57 +00:00
Kartikaya Gupta
e8dfcba2e3 Bug 1548197 - Remove unused mut instances to fix warnings with rust nightly. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D29492

--HG--
extra : moz-landing-system : lando
2019-05-01 13:54:09 +00:00
Ciure Andrei
b54e31abf8 Backed out changeset 91859883a54d (bug 1538540) for causing tests crashes with [@ GeckoCrash] CLOSED TREE 2019-05-01 12:46:56 +03:00
Doug Thayer
92c9cb3613 Bug 1538540 - Sanity check frames after TextureCache clears r=bholley
In trying to diagnose bug 1538540, I'm hitting my limits as far as
simply staring at the code and trying to work out possible ways to
hit the crash goes. This assertion will split the search space into
clear-related causes and non-clear-related causes to narrow things
down.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 23:58:23 +00:00
Kartikaya Gupta
140fb1c366 Bug 1547097 - Remove ReadPixelsFormat. r=kvark
The Rgba8 enum value is redundant with the Standard(ImageFormat::RGBA8) value,
this patch collapses the former into the latter. Which then makes the entire
ReadPixelsFormat redundant, so we can get rid of it completely.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 17:43:41 +00:00
Kartikaya Gupta
1ee860c169 Bug 1547979 - Bump appveyor rust version to 1.34. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D29351

--HG--
extra : moz-landing-system : lando
2019-04-30 13:51:08 +00:00
Nicolas Silva
c55d3f681a Bug 1547290 - Mark CaptureConfig::file_path allow(dead_code) on a CLOSED TREE. r=me
--HG--
extra : histedit_source : 9188555b2ccaeb30a135ed4aecfb28b01cfd478f
2019-04-30 09:39:15 +02:00
Nicolas Silva
9008946909 Bug 1547290 - Dump the render graph in SVG format in frame captures. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D29005

--HG--
extra : source : b4afebeb22461c276463a919880efdbe0126695d
2019-04-29 16:11:12 +02:00
Glenn Watson
3ba7bef4b0 Bug 1547632 - Remove unused local clip rect stored on WR picture primitives. r=emilio,kvark
Differential Revision: https://phabricator.services.mozilla.com/D29148

--HG--
extra : moz-landing-system : lando
2019-04-29 16:16:11 +00:00
Dzmitry Malyshau
3aa374797c Bug 1525641 - Revise WR backface visibility semantics, separate picture and primitive logic r=gw
This changes our backface visibility semantics to a slightly more complex rule,
as described by Matt (and reinterpret by me in the context of WR) in bug 1525641 during our work week.
We are now propagating is_backface_visible to pictures and evaluate it in the context of
the local transform for a picture if it's outside of preserve-3d context.
We also refactor get_relative_transform() a bit.

Note: this fixes all of the existing backface-visibility bugs: 1525641, 1546110, 1546818
It also passes the Wrench tests, but the try push is still pending for surprises.

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

--HG--
rename : gfx/wr/wrench/reftests/backface/backface-leaf.yaml => gfx/wr/wrench/reftests/backface/backface-3d-leaf.yaml
extra : moz-landing-system : lando
2019-04-29 16:45:38 +00:00
Nicolas Silva
8471eabd7f Bug 1546126 - Fix the max blob tile limit logic. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D28991

--HG--
extra : moz-landing-system : lando
2019-04-26 15:38:54 +00:00
Kartikaya Gupta
5023b06a14 Bug 1542826 - Rebuild the debugger front-end. r=gw
This patch is the output of rebuilding the debugger frontend with a
recent npm installation. The changes to dist/ and the addition of
package-lock.json are a result of the build. The changes to package.json
and main.js were done manually to work around an incompatible change
in beufy 0.6.7 (the lib/ folder changed to dist/).

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:31:09 +00:00
Kartikaya Gupta
336a506446 Bug 1542826 - Add more debug flags to disable various things. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D28356

--HG--
extra : moz-landing-system : lando
2019-04-25 19:29:15 +00:00
Kartikaya Gupta
288d1e8e3e Bug 1542826 - Allow enabling/disabling the debug server at runtime. r=gw
This adds a RendererOption flag to control whether the debug server is
enabled. This allows the debug server feature to be built without
enabling the feature by default; it can then be enabled on a
per-renderer basis via the RendererOption.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:28:32 +00:00
Kartikaya Gupta
9fc3672251 Bug 1542826 - Reduce featureset enabled on image crate. r=gw
The debugger in WebRender uses the image crate to generate PNGs, and so
it only really needs the png codec feature from the image crate.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:28:23 +00:00
Dzmitry Malyshau
681ee8a0d0 Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw
The gist of the problem I introduced with the framebuffer coordinate system is that we provided the window rect (effectively) twice:
  1. when computing the document rectangle (and Y-inverting it)
  2. when rendering

If between these points the window got resized (during scene building), we end up with our document aligned to bottom left corner.
The user expects content to still be aligned to the top left, so that's what is visible as a bug.

The change here switched scene building to only care about device coordinate space, restraining the framebuffer coordinates to be mostly
an implementation detail of the renderer/device (the way it was originally meant to be, when introduced). This way the current window size
is only considered once during rendering.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 13:02:47 +00:00
Lee Salzman
e7d7a7b122 Bug 1414961 - check for EXT_blend_func_extended when using GL ES. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D28569

--HG--
extra : moz-landing-system : lando
2019-04-24 05:15:04 +00:00
Razvan Maries
5f610a07b3 Backed out 8 changesets (bug 1542826) for build bustages. CLOSED TREE
Backed out changeset f3516e1416f0 (bug 1542826)
Backed out changeset 1dba743761b7 (bug 1542826)
Backed out changeset a02e469be7b3 (bug 1542826)
Backed out changeset 5118d628ec89 (bug 1542826)
Backed out changeset 5744891efeef (bug 1542826)
Backed out changeset e5af8cd01080 (bug 1542826)
Backed out changeset 314f9bc7dafe (bug 1542826)
Backed out changeset 7df230ea5122 (bug 1542826)
2019-04-23 23:14:06 +03:00
Kartikaya Gupta
0dd25a94d2 Bug 1542826 - Rebuild the debugger front-end. r=gw
This patch is the output of rebuilding the debugger frontend with a
recent npm installation. The changes to dist/ and the addition of
package-lock.json are a result of the build. The changes to package.json
and main.js were done manually to work around an incompatible change
in beufy 0.6.7 (the lib/ folder changed to dist/).

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:57:09 +00:00
Kartikaya Gupta
d3c9a80c63 Bug 1542826 - Add more debug flags to disable various things. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D28356

--HG--
extra : moz-landing-system : lando
2019-04-23 19:56:23 +00:00
Kartikaya Gupta
6227460f41 Bug 1542826 - Allow enabling/disabling the debug server at runtime. r=gw
This adds a RendererOption flag to control whether the debug server is
enabled. This allows the debug server feature to be built without
enabling the feature by default; it can then be enabled on a
per-renderer basis via the RendererOption.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:55:11 +00:00
Kartikaya Gupta
343a8913bf Bug 1542826 - Reduce featureset enabled on image crate. r=gw
The debugger in WebRender uses the image crate to generate PNGs, and so
it only really needs the png codec feature from the image crate.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:55:06 +00:00
Alexis Beingessner
8289701d8c Bug 1536121 - rearchitect the webrender display-list. r=gw
disclaimer: this isn't an *amazing* cleanup, but more of a major step that
unlocks the ability to do more minor cleanups and refinements. There's some
messy things and inconsistencies here and there, but we can hopefully iron
them out over time.

1. The primary change here is to move from
    struct { common_fields, enum(specific_fields) }
to
    enum (maybe_common_fields, specific_fields)

most notably this drops the common fields from a ton of things
that don't need them PopXXX, SetXXX, ClipChain, etc.

2. Additionally some types have had some redundant states shaved off,
for instance, rect no longer has *both* bounds and a clip_rect, as
the intersection of the two can be used. This was done a bit conservatively
as some adjustments will need to be done to the backend to fully eliminate
some states, and this can be done more incrementally.

2.5. As a minor side-effect of 2, we now early-reject some primitives whose
bounds and clip_rect are disjoint.

3. A HitTest display item has been added, which is just a Rect without
color. In addition to the minor space wins from this, this makes it much
easier to debug display lists

4. Adds a bunch of comments to the display list, making it easier to understand
things.

The end result of all these changes is a significantly smaller and easier to
understand display list. Especially on pages like gmail which have so many
clip chains. However this ultimately just makes text an even greater percentage
of pages (often 70-80%).

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

--HG--
extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
Alexis Beingessner
bd5e102438 Bug 1536121 - cleanup display list code a little bit to prep for refactor. r=gw
* make all enums repr(u8) (compiler bug blocking this long fixed)
* add display list stats feature
* remove cache markers (abandoned design)
* don't always push empty SetFilters before PushStackingContext
* remove dead pub methods

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

--HG--
extra : moz-landing-system : lando
2019-04-23 17:29:38 +00:00
Glenn Watson
aad259b402 Bug 1546286 - Fix external scroll offset handling for perspective elements. r=emilio
External scroll offsets are not propagated across reference frames.

When a perspective element scrolls relative to an ancestor scroll
frame, remove the effect of any external scroll offset during that
offset calculation.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 09:25:39 +00:00
Dorel Luca
0caaab0f1e Backed out 2 changesets (bug 1536121) for Reftest failures
Backed out changeset 0fc395a2ac71 (bug 1536121)
Backed out changeset 430032511561 (bug 1536121)

--HG--
extra : rebase_source : 95c710b24ec5b76da20ddb5573036c8c73873e9e
2019-04-23 10:05:14 +03:00
Alexis Beingessner
ee4e394f45 Bug 1536121 - rearchitect the webrender display-list. r=gw
disclaimer: this isn't an *amazing* cleanup, but more of a major step that
unlocks the ability to do more minor cleanups and refinements. There's some
messy things and inconsistencies here and there, but we can hopefully iron
them out over time.

1. The primary change here is to move from
    struct { common_fields, enum(specific_fields) }
to
    enum (maybe_common_fields, specific_fields)

most notably this drops the common fields from a ton of things
that don't need them PopXXX, SetXXX, ClipChain, etc.

2. Additionally some types have had some redundant states shaved off,
for instance, rect no longer has *both* bounds and a clip_rect, as
the intersection of the two can be used. This was done a bit conservatively
as some adjustments will need to be done to the backend to fully eliminate
some states, and this can be done more incrementally.

2.5. As a minor side-effect of 2, we now early-reject some primitives whose
bounds and clip_rect are disjoint.

3. A HitTest display item has been added, which is just a Rect without
color. In addition to the minor space wins from this, this makes it much
easier to debug display lists

4. Adds a bunch of comments to the display list, making it easier to understand
things.

The end result of all these changes is a significantly smaller and easier to
understand display list. Especially on pages like gmail which have so many
clip chains. However this ultimately just makes text an even greater percentage
of pages (often 70-80%).

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

--HG--
extra : moz-landing-system : lando
2019-04-23 02:32:50 +00:00
Alexis Beingessner
e16f06e3b9 Bug 1536121 - cleanup display list code a little bit to prep for refactor. r=gw
* make all enums repr(u8) (compiler bug blocking this long fixed)
* add display list stats feature
* remove cache markers (abandoned design)
* don't always push empty SetFilters before PushStackingContext
* remove dead pub methods

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

--HG--
extra : moz-landing-system : lando
2019-04-23 02:32:48 +00:00
Glenn Watson
160bd46b0d Bug 1543356 - Visual glitches on resizing the browser with WebRender. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D27978

--HG--
extra : moz-landing-system : lando
2019-04-18 15:28:39 +00:00
Glenn Watson
d8c42a8290 Bug 1545006 - Use external scroll offsets to move primitives and clips into local space. r=kats
Use the external scroll offsets provided by Gecko to:
 (a) Offset primitives and clips by accumulated scroll offset.
 (b) Adjust the scroll transforms and hit test results.

This allows primitives and clips to be stored in a true local space,
that is consistent between display lists, even if scrolling has
occurred. This is a step towards planned picture caching improvements.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 21:06:19 +00:00
Nicolas Silva
ddb01e5eb8 Bug 1519106 - Converge towards the max number of tiles faster. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D27728

--HG--
extra : moz-landing-system : lando
2019-04-17 14:41:47 +00:00
Nicolas Silva
d64ddb564e Bug 1519106 - Increase the maximum number of rasterized blob images per transaction. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16190

--HG--
extra : moz-landing-system : lando
2019-04-17 14:43:37 +00:00
Doug Thayer
a632894d10 Bug 1539629 - Fix WR capture for multi-document use r=kvark
We fail the assertion at the beginning of GpuCache::begin_frame
right now because we run the extract_updates call after building
frames for every document. This just moves the extract_updates
work to be per-document.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 18:33:17 +00:00
Nicolas Silva
bd2c8b86cd Bug 1544374 - Make FilterOp not copy. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D27480

--HG--
extra : moz-landing-system : lando
2019-04-16 07:43:04 +00:00
Barret Rennie
96b41444c7 Bug 1444434 - Bind pixel pack buffer before trying to map it for readback r=gw
Differential Revision: https://phabricator.services.mozilla.com/D26946

--HG--
extra : moz-landing-system : lando
2019-04-15 23:39:10 +00:00
Doug Thayer
fa696a2768 Bug 1538710 - Regen wrench reftest images r=kats
These are trivially different. I couldn't find a cause for the
difference, so I am just regenerating them.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 22:35:05 +00:00
Doug Thayer
56b32c7614 Bug 1538710 - Remove disable-shrink pref r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D25134

--HG--
extra : moz-landing-system : lando
2019-04-15 22:34:51 +00:00
Doug Thayer
452bc370df Bug 1538710 - Move texture_cache cleanup to beginning of all frames r=bholley
... and ensure that, if we do cleanup, we generate frames for every document.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 22:34:43 +00:00
Doug Thayer
066df32bb7 Bug 1538710 - Add WR API endpoint for sending multiple transactions r=nical
We discussed this a bit in Orlando. Essentially, we want to run cleanup
operations in texture_cache before all documents' frames, and then be
able to ensure that every document generates a frame, because otherwise
we will run into problems with evicted cache items used by non-updating-
but-still-rendering documents. Accordingly, we need an endpoint to
lump all of the transactions that generate frames together. This adds
that and builds out all of the plumbing necessary.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 22:34:13 +00:00
Daniel Varga
bf8c3286c2 Backed out 4 changesets (bug 1538710) for webrender-lint
Backed out changeset 6f3f506c7740 (bug 1538710)
Backed out changeset 1a529f967061 (bug 1538710)
Backed out changeset afa5cc2c6032 (bug 1538710)
Backed out changeset ab2083ff97f4 (bug 1538710)
2019-04-15 23:18:19 +03:00
Doug Thayer
ae6cce41e3 Bug 1538710 - Regen wrench reftest images r=kats
These are trivially different. I couldn't find a cause for the
difference, so I am just regenerating them.

Depends on D25134

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

--HG--
extra : moz-landing-system : lando
2019-04-15 18:38:14 +00:00
Doug Thayer
1bcffd5a5f Bug 1538710 - Remove disable-shrink pref r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D25134

--HG--
extra : moz-landing-system : lando
2019-04-15 18:09:10 +00:00
Doug Thayer
20361c4f24 Bug 1538710 - Move texture_cache cleanup to beginning of all frames r=bholley
... and ensure that, if we do cleanup, we generate frames for every document.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 18:08:47 +00:00
Doug Thayer
3efeb79ae5 Bug 1538710 - Add WR API endpoint for sending multiple transactions r=nical
We discussed this a bit in Orlando. Essentially, we want to run cleanup
operations in texture_cache before all documents' frames, and then be
able to ensure that every document generates a frame, because otherwise
we will run into problems with evicted cache items used by non-updating-
but-still-rendering documents. Accordingly, we need an endpoint to
lump all of the transactions that generate frames together. This adds
that and builds out all of the plumbing necessary.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 18:56:04 +00:00
Glenn Watson
cb4bba0e06 Bug 1513019 - Fix plane splitting with complex, axis-aligned transforms. r=emilio,kats
Differential Revision: https://phabricator.services.mozilla.com/D27462

--HG--
extra : moz-landing-system : lando
2019-04-15 14:00:23 +00:00
shindli
ed9c6ae936 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-04-12 19:19:43 +03:00
Nicolas Silva
c341b17328 Bug 1535273 - Remove webrender::util::rect_from_points. r=kats 2019-04-12 16:08:39 +02:00
Glenn Watson
6348da8082 Bug 1543844 - Fix incorrect max scale detection in WR border rendering. r=emilio
The local rect for border segments is not solely determined by
the widths and/or radius. Instead of determining the max scale
based on those parameters, use the calculated border segment
rects to determine an appropriate max scale factor.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 09:58:24 +00:00
Jean-Yves Avenard
d91ea6eb87 Bug 1540581 - P9. Add R16G16 type and update of P010/P016 resource update. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D26464

--HG--
extra : moz-landing-system : lando
2019-04-11 12:37:23 +00:00
Jean-Yves Avenard
c6e2001c75 Bug 1493898 - P1. Add preliminary BT2020 colorspace support. r=mattwoodrow
Only active with webrender and AL.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:40:40 +00:00
Alexis Beingessner
57e741babc Bug 1525642 - ensure that w~=1 when assuming a transform is just a translation. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D27163

--HG--
extra : moz-landing-system : lando
2019-04-11 20:52:21 +00:00
Glenn Watson
2e71f94491 Bug 1542972 - Reduce use of world_content_transform in WR. r=emilio
The way that world content transform is calculated has some
inconsistencies related to transform flattening, compared to
the get_relative_transform implementation.

Reducing usage of this field will make it simpler to take
advantage of the external scroll offset, which is needed for
some of the planned picture caching improvements.

This patch removes the simple uses of world_content_transform,
but there are still a small number of more complicated uses that
need to be handled separately.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 10:40:35 +00:00
Glenn Watson
f7a2dbd20e Bug 1542696 - WR crashes on debug_assert! with out-of-process iframes r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D26611

--HG--
extra : moz-landing-system : lando
2019-04-08 21:39:19 +00:00
Dorel Luca
d0e6f0880f Backed out 3 changesets (bug 1538710) for Wrench bustage. CLOSED TREE
Backed out changeset 9a80bc4d626a (bug 1538710)
Backed out changeset f5f916011032 (bug 1538710)
Backed out changeset 585b51bba30d (bug 1538710)
2019-04-08 19:09:49 +03:00
Doug Thayer
e096909f4c Bug 1538710 - Remove disable-shrink pref r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D25134

--HG--
extra : moz-landing-system : lando
2019-04-08 15:25:47 +00:00
Doug Thayer
9225547960 Bug 1538710 - Move texture_cache cleanup to beginning of all frames r=bholley
... and ensure that, if we do cleanup, we generate frames for every document.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 15:24:03 +00:00
Doug Thayer
33295b9e8b Bug 1538710 - Add WR API endpoint for sending multiple transactions r=nical
We discussed this a bit in Orlando. Essentially, we want to run cleanup
operations in texture_cache before all documents' frames, and then be
able to ensure that every document generates a frame, because otherwise
we will run into problems with evicted cache items used by non-updating-
but-still-rendering documents. Accordingly, we need an endpoint to
lump all of the transactions that generate frames together. This adds
that and builds out all of the plumbing necessary.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 15:23:20 +00:00
Alexis Beingessner
432d3446dd Bug 1527751 - properly apply transformed clips in brush shader. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D26332

--HG--
extra : moz-landing-system : lando
2019-04-05 17:16:55 +00:00
Kartikaya Gupta
4752e32d5b Bug 1529117 - Bump serde and 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-04-04 15:41:57 +00:00
Dzmitry Malyshau
eef888097b Bug 1538711 - Fix tile cache clip chain in WR r=gw
Differential Revision: https://phabricator.services.mozilla.com/D25667

--HG--
extra : moz-landing-system : lando
2019-04-03 16:28:19 +00:00
Andrew Osmond
a26277d8ff Bug 1541059 - Add support for KHR_debug to WebRender for debug markers. r=kvark
Today we already support EXT_debug_marker for debug markers in
WebRender. This is useful to categorize GL API calls in tools such as
APITrace and RenderDoc. However not all drivers indicate support for
said extension, but instead support KHR_debug. This patch makes us
support both methods, preferring KHR_debug.

Differential Revision: https://phabricator.services.mozilla.com/D25787
2019-04-02 12:31:03 -04:00
Emilio Cobos Álvarez
a77e5e1ffc Bug 1520953 - Use GL_ANGLE_provoking_vertex extension if available. r=jgilbert
You tell me if this is right, I have no Windows build available to test :)

Depends on D25602

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

--HG--
extra : moz-landing-system : lando
2019-04-01 16:06:20 +00:00
Emilio Cobos Álvarez
63d22618c3 Bug 1520953 - Update gleam. r=kats,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D25602

--HG--
extra : moz-landing-system : lando
2019-04-01 17:54:08 +00:00
Nicolas Silva
5568e27ddb Bug 1535273 - Remove webrender::util::rect_is_empty. r=kats 2019-03-14 11:23:39 +01:00
Barret Rennie
6e284e1063 Bug 1444434 - Free the Gecko profiler screenshots structures in the WebRender renderer when profiling stops r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23964

--HG--
extra : moz-landing-system : lando
2019-03-28 14:51:49 +00:00
Barret Rennie
6131c4dbab Bug 1444434 - Add C bindings to the Renderer::get_screenshot_async and Renderer::map_and_recycle_screenshot APIs r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23962

--HG--
extra : moz-landing-system : lando
2019-03-28 14:51:32 +00:00
Barret Rennie
03468158ba Bug 1444434 - Add infrastructure for reading back screenshots for the Gecko profiler to WebRender r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23961

--HG--
extra : moz-landing-system : lando
2019-03-28 14:51:25 +00:00
Barret Rennie
98ab12e0e7 Bug 1444434 - Capture screenshots for the Gecko profiler in WebRender r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23960

--HG--
extra : moz-landing-system : lando
2019-03-28 14:51:15 +00:00
Barret Rennie
a3b16ea535 Bug 1444434 - Optionally create PBOs with a backing buffer and store that size with the PBO r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23959

--HG--
extra : moz-landing-system : lando
2019-03-28 14:51:08 +00:00
Dzmitry Malyshau
44c0bfd046 Bug 1528674 - WR improve picture texture cache allocaton r=gw
The change contains a number of incremental improvements with the main goal of:
  - allocating exactly as many tile as required by the app
  - respecting the picture caching option

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

--HG--
extra : moz-landing-system : lando
2019-03-28 03:02:45 +00:00
Glenn Watson
9b399ba2a8 Bug 1539048 - Support segment rendering for pictures in WR. r=kvark
On some low end GPUs, clip mask rendering can be a significant
GPU cost. One way to reduce this is to support segment rendering
on more primitive types, to reduce the size of clip masks.

This patch adds support for pictures that have clip masks
to take part in segment rendering. This can significantly
reduce the number of fragments that must be drawn into a clip
mask for off-screen picture surfaces.

In future, WR can take advantage of segment rendering to use
clip mask shaders that handle only a single corner at a time.
This will be a further significant performance win to clip mask
render time.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 21:25:31 +00:00
Cosmin Sabou
d3aa170d5a Backed out changeset bbb6a31ebf07 (bug 1528674) for webrender crashtests and reftests failures.
--HG--
extra : rebase_source : 083b18e419d18de6a13d7a22e482f995adee1b00
2019-03-27 02:15:39 +02:00
Coroiu Cristina
c1e4fdf4a6 Backed out 6 changesets (bug 1444434) for build bustages on a CLOSED TREE
Backed out changeset 13c0d857bf3c (bug 1444434)
Backed out changeset d2c85db549ea (bug 1444434)
Backed out changeset 543708a1f683 (bug 1444434)
Backed out changeset af008ed0a5c2 (bug 1444434)
Backed out changeset ec2a81eea388 (bug 1444434)
Backed out changeset 0bcf6edc8656 (bug 1444434)
2019-03-26 23:43:17 +02:00
Dzmitry Malyshau
5e158608bc Bug 1528674 - WR improve picture texture cache allocaton r=gw
The change contains a number of incremental improvements with the main goal of:
  - allocating exactly as many tile as required by the app
  - respecting the picture caching option

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

--HG--
extra : moz-landing-system : lando
2019-03-26 21:18:09 +00:00
Barret Rennie
b8fcd696e6 Bug 1444434 - Free the Gecko profiler screenshots structures in the WebRender renderer when profiling stops r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23964

--HG--
extra : moz-landing-system : lando
2019-03-21 19:30:34 +00:00
Barret Rennie
02072d330d Bug 1444434 - Add C bindings to the Renderer::get_screenshot_async and Renderer::map_and_recycle_screenshot APIs r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23962

--HG--
extra : moz-landing-system : lando
2019-03-21 19:09:22 +00:00
Barret Rennie
84219e9643 Bug 1444434 - Add infrastructure for reading back screenshots for the Gecko profiler to WebRender r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23961

--HG--
extra : moz-landing-system : lando
2019-03-21 19:16:12 +00:00
Barret Rennie
b8cb6e3e8a Bug 1444434 - Capture screenshots for the Gecko profiler in WebRender r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23960

--HG--
extra : moz-landing-system : lando
2019-03-21 20:13:58 +00:00
Barret Rennie
b73731e1e0 Bug 1444434 - Optionally create PBOs with a backing buffer and store that size with the PBO r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23959

--HG--
extra : moz-landing-system : lando
2019-03-21 17:07:24 +00:00
Glenn Watson
b625730d0b Bug 1538626 - Support fast path for clip-out rectangles in WR. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D24666

--HG--
extra : moz-landing-system : lando
2019-03-25 08:35:31 +00:00
Doug Thayer
c734d845d0 Bug 1441308 - Map document layers to z ranges r=gw
As discussed in IRC. AFAICT the ORTHO_NEAR|FAR_PLANE should match
up with the ranges of valid ZBufferIds, but please double-check
me.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 18:28:51 +00:00
Doug Thayer
09c427ac55 Bug 1441308 - Correct Renderer issues with multiple documents r=gw
This corrects A) An issue encountered with our strategy for skipping
the end_pass call for all but an offscreen render target. See the
comment above the end_pass call for details, and B) An issue with
depth clearing where we do not clear the whole rect if there are
multiple non-intersecting documents.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 18:28:46 +00:00
Doug Thayer
45b7708846 Bug 1441308 - Rename ForEach trait to AsyncForEach r=lsalzman
Just a little rename for clarity - I ended up scratching my head at
something for a little more time than I should have because I assumed
this was synchronous without looking at the implementation.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 18:28:38 +00:00
Doug Thayer
b172543596 Bug 1441308 - Core renderroot splitting changes r=kats,sotaro
This is a large patch that contains all of the core changes for
renderroot splitting.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 18:28:42 +00:00
Ciure Andrei
3de853018a Backed out 7 changesets (bug 1441308)for causing webrender build bustages CLOSED TREE
Backed out changeset 1764701d11d1 (bug 1441308)
Backed out changeset 32f7793dfd1a (bug 1441308)
Backed out changeset d8b4d6ec9b40 (bug 1441308)
Backed out changeset e2f83e4816dd (bug 1441308)
Backed out changeset baee8ada680f (bug 1441308)
Backed out changeset c09a51622e98 (bug 1441308)
Backed out changeset 737807563dd5 (bug 1441308)
2019-03-22 10:52:44 +02:00
Doug Thayer
472a9344d2 Bug 1441308 - Map document layers to z ranges r=gw
As discussed in IRC. AFAICT the ORTHO_NEAR|FAR_PLANE should match
up with the ranges of valid ZBufferIds, but please double-check
me.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 23:15:23 +00:00
Doug Thayer
fc4d50c197 Bug 1441308 - Correct Renderer issues with multiple documents r=gw
This corrects A) An issue encountered with our strategy for skipping
the end_pass call for all but an offscreen render target. See the
comment above the end_pass call for details, and B) An issue with
depth clearing where we do not clear the whole rect if there are
multiple non-intersecting documents.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:18 +00:00
Doug Thayer
32a7e500dd Bug 1441308 - Rename ForEach trait to AsyncForEach r=lsalzman
Just a little rename for clarity - I ended up scratching my head at
something for a little more time than I should have because I assumed
this was synchronous without looking at the implementation.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:16 +00:00
Doug Thayer
5b3a0454a4 Bug 1441308 - Core renderroot splitting changes r=kats,sotaro
This is a large patch that contains all of the core changes for
renderroot splitting.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:14 +00:00
Glenn Watson
557728d4ad Bug 1537668 - Refactor how clip task indices are passed to shaders. r=kvark
This patch shouldn't have any functional effect. It's motivated by
some changes needed to implement clip masks in pixel local storage,
but these are also general improvements that stand alone. Specifically:

 - Remove clip_task_index from the global PrimitiveHeader struct.
   In most cases, the clip task is supplied in the BrushInstance
   structure, so it makes no sense to have this as a common field,
   where it is generally unused. Instead, there is now an extra
   'user data' field available in the PrimitiveHeader. Non-brush
   shaders (text_run and split_composite) use that extra field to
   store the clip task address, while the brush shaders gain an extra
   (currently unused) user data field.
 - In turn, this means there is no need to unconditionally try
   and retrieve the first clip task address for a primitive
   during batching. This was previously used to initialize the
   PrimitiveHeader structure.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 14:37:57 +00:00
Kartikaya Gupta
f6575a29b2 Bug 1537577 - Move doc comment to fix new warning in rustc 1.35.0-nightly. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D24359

--HG--
extra : moz-landing-system : lando
2019-03-21 14:32:09 +00:00
Glenn Watson
8452fc14bc Bug 1536732 - Add experimental pixel-local-storage render path to WR r=kvark
Add an experimental code path that makes use of the pixel local
storage extension available on many mobile GPUs.

This code path is currently disabled by default, as the support
is not complete for all primitives and blend modes. The initial
aim is to get feature parity with the existing renderer.

Once that's complete, we can take advantage of the (minimum)
12 bytes per pixel of high speed on-tile memory to store custom
data.

Clip masks are a good use case for this, since they map 1:1 with
the position of the fragment they are clipping. Using this for
clip masks allows us to handle clipping on mobile GPUs in a much
more efficient way - we can skip (a) separate render targets,
(b) target resolve (c) sample the mask texture during rendering.

Depends on D24123

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

--HG--
extra : moz-landing-system : lando
2019-03-21 02:59:04 +00:00
Barret Rennie
36cd17958e Bug 1444434 - Bump webrender and webrender_bindings gleam dependency to 0.6.14 r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23958

--HG--
extra : moz-landing-system : lando
2019-03-20 19:52:53 +00:00
Dzmitry Malyshau
7afa68dc61 Bug 1536085 - Update plane-split to 0.13.8 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D24095

--HG--
extra : moz-landing-system : lando
2019-03-19 21:00:08 +00:00
Glenn Watson
9d856b1091 Bug 1535976 - Add a fast path for common rounded rect clips to WR. r=kvark
Most rounded rect clips in real content are (a) axis aligned and
(b) have uniform radii.

When these conditions are met, we can run a fast path for clip
mask generation that uses significantly fewer ALU shader ops.

This is not typically a bottleneck on desktop GPUs, but can have
a large performance impact on mobile GPUs (and perhaps low end
integrated GPUs).

The Mali shader analyzer reports the slow path for the rounded
rect clip shader to be 94 cycles per fragment, while the fast
path is 10 cycles.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 19:48:13 +00:00
Bogdan Tara
d8ee73369c Backed out changeset 93c9a0e2da6e (bug 1527751) for wrench bustages CLOSED TREE 2019-03-19 07:41:50 +02:00
Alexis Beingessner
e2857c55ed Bug 1527751 - properly apply transformed clips in brush shader. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D23905

--HG--
extra : moz-landing-system : lando
2019-03-18 21:05:56 +00:00
Bogdan Tara
84581c394f Backed out changeset 70440f88051f (bug 1535976) for /reftests/transform-3d/mask-layer* failures CLOSED TREE 2019-03-19 06:02:09 +02:00
Glenn Watson
7e08c517ab Bug 1535976 - Add a fast path for common rounded rect clips to WR. r=kvark
Most rounded rect clips in real content are (a) axis aligned and
(b) have uniform radii.

When these conditions are met, we can run a fast path for clip
mask generation that uses significantly fewer ALU shader ops.

This is not typically a bottleneck on desktop GPUs, but can have
a large performance impact on mobile GPUs (and perhaps low end
integrated GPUs).

The Mali shader analyzer reports the slow path for the rounded
rect clip shader to be 94 cycles per fragment, while the fast
path is 10 cycles.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:15:45 +00:00
Jamie Nicol
083b51840d Bug 1511433 - Ensure address variables in fragment shaders are highp precision. r=gw
In GLES 3 GLSL, the default precision for ints is highp (32 bit) in
vertex shaders, but only mediump (16 bit) in fragment shaders.

To render linear and radial gradients the fragment shader must fetch
the gradient stops from the gpu cache, using an address variable. This
variable is a 16 bit int, so if the stops data is located at
too high an address (row 32 or greater) then this value will have
overflown and we fetch from the wrong location. This was resulting in
garbage being drawn instead of the correct gradients.

To fix this, any address used in a fragment shader must be marked as
highp. This includes the varying input which supplies the address, and
the arguments to any functions used for the fetch.

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

--HG--
extra : moz-landing-system : lando
2019-03-17 20:54:29 +00:00
Glenn Watson
a15a5c4425 Bug 1535540 - Remove the identity transform condition while checking redundant stacking contexts. r=emilio
The only time that the ancestor spatial node index is read is
during push_stacking_context. This means that even if it was
used as an ancestor for a 3d context, we can safely collapse
it in to the parent stacking context during flattening, if it
is otherwise redundant.

This is a partial fix for picture caching heuristics failing
with the display list produced on mobile devices.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 03:08:26 +00:00
Dzmitry Malyshau
7f7b9d9668 Bug 1527325 - Don't re-export contents of WR API units r=gw
The cleans up our WR use statements further, easying the merge conflicts.
Note: this PR is subject to instant rot, it is preferred to land quickly.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 01:44:05 +00:00
Gurzau Raul
fc5efa3bc0 Backed out changeset 950174a8c708 (bug 1527325) for wrench failures on a CLOSED TREE. 2019-03-14 00:56:55 +02:00
Dzmitry Malyshau
5136f1e520 Bug 1527325 - Don't re-export contents of WR API units r=gw
The cleans up our WR use statements further, easying the merge conflicts.
Note: this PR is subject to instant rot, it is preferred to land quickly.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 19:30:56 +00:00
Glenn Watson
59cda29424 Bug 1534885 - Change clip mask rendering to not rely on render task data. r=kvark
As a general principle, we're trying to remove most usage of the
render task data that gets stored in a texture (bind_frame_data
is slow on many platforms, and it's somewhat inflexible with the
amount of data that can be provided).

This also lays some foundations for possibly drawing clip masks
with alternative techniques on mobile / tiled GPU architectures,
where we may not need / want a render task for clip masks.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 19:28:36 +00:00
Dzmitry Malyshau
97423c7bca Bug 1519718 - Revert the mix-blend rewrite r=jrmuizel
https://phabricator.services.mozilla.com/D20608
Caused problems in Servo https://github.com/servo/servo/pull/22973 and MotionMark - https://bugzilla.mozilla.org/show_bug.cgi?id=1519718

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

--HG--
rename : gfx/wr/wrench/reftests/blend/multiply-3-ref.yaml => gfx/wr/wrench/reftests/blend/multiply-2-ref.yaml
extra : moz-landing-system : lando
2019-03-13 14:50:46 +00:00
sotaro
c046c7a430 Bug 1531294 - Fix RecvEmptyTransaction() as to handle WebRenderTextureHostWrapper usage case
By Bug 1526213, WebRenderBridgeParent::RecvEmptyTransaction() does not handle a case that resource update is handled by WebRenderTextureHostWrapper. In this case, txn.IsResourceUpdatesEmpty() became true and the function thought there was no resource update and the function returned DidComposite soon to client side. Then it caused a heavy over production of SharedSurface_ANGLEShareHandle if GPU is not powerful.

Differential Revision: https://phabricator.services.mozilla.com/D22454
2019-03-12 21:48:34 +09:00
Bogdan Tara
8abdafbf10 Merge inbound to mozilla-central. a=merge 2019-03-12 11:51:39 +02:00
Timothy Nikkel
6061184923 Bug 1532245. Factor out component transfer code to a function in brush_blend shader for webreder. r=gw
Some phones can't compile the shader as is: "ERROR: 0:1448: '' : No default label can be nested inside other control flow nested within their corresponding switch"

https://github.com/servo/webrender/wiki/Driver-issues#bug-1532245---switch-statement-inside-control-flow-inside-switch-statement-fails-to-compile-on-some-android-phones

Differential Revision: https://phabricator.services.mozilla.com/D22853
2019-03-11 21:34:30 -05:00
Oana Pop Rus
69cfd60db1 Backed out changeset c32dcf4e6f92 (bug 1532245) for wrench failures 2019-03-12 00:29:04 +02:00
Timothy Nikkel
22a6c8b875 Bug 1532245. Factor out component transfer code to a function in brush_blend shader for webreder. r=gw
Some phones can't compile the shader as is: "ERROR: 0:1448: '' : No default label can be nested inside other control flow nested within their corresponding switch"

https://github.com/servo/webrender/wiki/Driver-issues#bug-1532245---switch-statement-inside-control-flow-inside-switch-statement-fails-to-compile-on-some-android-phones

Differential Revision: https://phabricator.services.mozilla.com/D22853
2019-03-11 17:01:40 -05:00
Dorel Luca
d16991b48d Backed out changeset ec39fd695adb (bug 1531294) for webrender failures 2019-03-12 05:33:33 +02:00
Dzmitry Malyshau
b6ebaa6f8d Bug 1532174 - Roll back env_logger to 0.5 r=gw
needed to avoid duplicate dependencies

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

--HG--
extra : moz-landing-system : lando
2019-03-12 02:54:05 +00:00
Dzmitry Malyshau
f64c5868d0 Bug 1532174 - Refactor get_relative_transform to not return an option r=gw
Just a refactor without any semantical changes.
Makes it for cleaner client code. Also prepares for caching of the world transforms.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 02:27:29 +00:00
Dzmitry Malyshau
cfb49f008a Bug 1532174 - Strongly typed vertex data stores in WR r=gw
Establishes a clear link of TransformData with the shader.
Associates a vertex data type permanently, which makes the code cleaner and allow finding the relevant bits quickly with search.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 02:26:51 +00:00
Dzmitry Malyshau
176b658e7a Bug 1532174 - Enable env_logger by default in Wrench r=gw
Env logger is useful for:
  1. seeing error! generated by the code (by default). Sometimes it can give us hints on what is wrong with the capture, or a test right away.
  2. seeing processed shader compile/link errors, which is very useful when changing them

Given that wrench is the main debugging tool at the moment, enabling the logging output by default should increase our productivity, at the cost of slightly longer build times.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 02:26:34 +00:00
sotaro
ed7384e097 Bug 1531294 - Fix RecvEmptyTransaction() as to handle WebRenderTextureHostWrapper usage case r=mattwoodrow
By Bug 1526213, WebRenderBridgeParent::RecvEmptyTransaction() does not handle a case that resource update is handled by WebRenderTextureHostWrapper. In this case, txn.IsResourceUpdatesEmpty() became true and the function thought there was no resource update and the function returned DidComposite soon to client side. Then it caused a heavy over production of SharedSurface_ANGLEShareHandle if GPU is not powerful.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 23:05:58 +00:00
Glenn Watson
f2f661a64c Bug 1531170 - Fix WR hit testing breakage caused by stacking context clip changes. r=kvark
Recently, semantics for clips on stacking contexts were changed
such that primitives inherit the clip chain from all enclosing
stacking contexts. However, the hit testing code was not updated
to handle this change.

As each hit testing primitive is added, the current stack of
active stacking contexts is now scanned. Any valid clip chain
roots from the primitive and/or the stacking context stack are
added to the list of clip chain roots for this hit testing
primitive.

This patch also applies some optimizations and other cleanups
of the hit-testing code, specifically:

 - Instead of cloning the hit testing runs Vec every time a
   frame is built, store these in the new HitTestingScene. The
   HitTestingScene is built once per scene, and then shared by
   any hit tester instances via an Arc. This reduces a lot of
   memory allocations and copying during scrolling.
 - When creating a new HitTestingScene, pre-allocate the size
   of the arrays, based on the size of the previous hit testing
   structure. This works similarly to how arrays are sized
   in the PrimitiveStore.
 - Pre-calculate and cache a number of inverse transform matrices
   that were previously being calculated for each hit testing run.
 - Store hit testing primitives in a flat array, instead of runs,
   since there is no longer a single clip chain id per primitive.
 - Fix an apparent (?) bug in the existing hit testing code, where
   clipping out a single hit test primitive would break out of the
   loop for the current run of hit test items.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 16:19:21 +00:00
Bogdan Tara
e3008ee390 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-08 23:57:07 +02:00
Bogdan Tara
738b07a929 Merge inbound to mozilla-central. a=merge 2019-03-08 23:52:28 +02:00
Bobby Holley
af5a99b2ad Bug 1532810 - Report long-running GL calls to the profiler. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D22202
2019-03-08 13:34:49 -08:00
Bobby Holley
fa27fe3954 Bug 1532810 - Update gleam. r=me 2019-03-08 13:34:48 -08:00
shindli
b483c4a572 Backed out 3 changesets (bug 1532810) for wrench bustages CLOSED TREE
Backed out changeset 866b6d9949a8 (bug 1532810)
Backed out changeset 1cb006402562 (bug 1532810)
Backed out changeset 24b9ae45e4fa (bug 1532810)
2019-03-08 19:41:32 +02:00
Bobby Holley
843df28fb1 Bug 1532810 - Update Cargo.lock to fix wrench bustage on a CLOSED TREE. r=me 2019-03-08 09:37:26 -08:00
Bobby Holley
c1cbf37e13 Bug 1532810 - Report long-running GL calls to the profiler. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D22202
2019-03-08 09:16:50 -08:00
Bobby Holley
b49d9f5234 Bug 1532810 - Update gleam. r=me 2019-03-08 09:16:49 -08:00
Nicolas Silva
fc4df4b5f7 Bug 1533282 - Restore the debugging options in wrench/script/headless.py. r=kvark,kats
Differential Revision: https://phabricator.services.mozilla.com/D22458

--HG--
extra : source : 84b7e225952a06c95cc415abf497e8295e644ad6
2019-03-08 11:15:32 +01:00
Kartikaya Gupta
1889f4e164 Bug 1532284 - Build wrench on Android. r=glandium
Depends on D22377

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

--HG--
extra : moz-landing-system : lando
2019-03-08 00:37:46 +00:00
Kartikaya Gupta
b4182026be Bug 1532284 - Build using android-28. r=gw
This is the SDK version we use to build other Android stuff in
mozilla-central. It's simpler if we build Wrench using the same
target since we can reuse the toolchains.

Depends on D22376

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

--HG--
extra : moz-landing-system : lando
2019-03-07 17:34:50 +00:00
Kartikaya Gupta
d1e8fe8a40 Bug 1532284 - Fix rustc compiler warnings when building wrench for Android. r=gw
Various variables are unused when building for Android.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 17:34:50 +00:00
Lee Salzman
18932c1c7f Bug 1522787 - downscale bitmap glyphs to avoid filtering artifacts r=gw
Differential Revision: https://phabricator.services.mozilla.com/D22704
2019-03-08 08:48:38 -05:00
Glenn Watson
e920cc3f6a Bug 1533236 - Add a fast path to WR for common gradient types. r=kvark
The existing linear gradient shader is quite slow, especially
on very large gradients on integrated GPUs.

The vast majority of gradients in real content are very simple
(typically < 4 stops, no angle, no repeat). For these, we can
run a fast path to persist a small gradient in the texture cache
and draw the gradient via the image shader.

This is _much_ faster than the catch-all gradient shader, and also
results in better batching while drawing the main scene.

In future, we can expand the fast path to handle more cases, such
as angled gradients. For now, it takes a conservative approach,
but still seems to hit the fast path on most real content.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 21:20:40 +00:00
Ciure Andrei
5b0d4e70f1 Backed out changeset 664fd8f4cc02 (bug 1533282) for causing a wrench bustage CLOSED TREE 2019-03-07 19:17:34 +02:00
Nicolas Silva
a9c6312e6e Bug 1533282 - Restore the debugging options in wrench/script/headless.py. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D22458

--HG--
extra : moz-landing-system : lando
2019-03-07 14:16:44 +00:00
Jamie Nicol
b112738bcb Bug 1528820 - Work around Adreno bug when blitting to texture array. r=kvark
There is a bug on Adreno GPUs where glBlitFramebuffers always writes
to the 0th layer of a texture array, regardless of which layer is
actually attached to the draw framebuffer.

With picture caching enabled on webrender, the cached pictures were
all being drawn to the 0th layer of the picture cache texture array,
leaving the other layers blank. This was resulting in the wrong
content being drawn on one tile of the screen, and the rest being
black.

This works around this by blitting to an intermediate renderbuffer,
then using glCopyTexSubImage3D to copy from the renderbuffer to the
correct texture layer.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 14:02:50 +00:00
Jamie Nicol
783cdd7d41 Bug 1528820 - Make Device::blit_render_target() require read and draw targets as arguments. r=kvark
Same for blit_render_target_invert_y(). Make them wrappers around the
private function blit_render_target_impl(), which uses the currently
bound read and draw targets as before.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 14:02:46 +00:00
Emilio Cobos Álvarez
cb19991fd7 Bug 1533142 - Use more cbindgen features. r=kats
We can get back the fancy flag syntax as soon as we get C++17 inline variables,
which I sent an email to dev-platform@ about, with no reply.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 23:01:11 +00:00
Lee Salzman
91d9a90e20 Bug 1533139 - pass in raster scale to text run shader without inverting r=gw
Differential Revision: https://phabricator.services.mozilla.com/D22379

--HG--
extra : moz-landing-system : lando
2019-03-06 21:39:04 +00:00
Lee Salzman
f4c05292a1 Bug 1527531 - calculate glyph subpixel positions using the precise font transform r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D22349

--HG--
extra : moz-landing-system : lando
2019-03-06 20:40:53 +00:00
Bobby Holley
ec2f81db57 Bug 1531196 - Add a "small-screen" debug pref to shrink the overlay a bit. r=gw
Adaptive sizing would be better, but this is the simplest path to
victory.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 20:32:32 +00:00
Gurzau Raul
0208b45a04 Backed out changeset 6878f6294d68 (bug 1519718) for bustages on a CLOSED TREE. 2019-03-06 12:34:28 +02:00
Gurzau Raul
0e6a425f79 Backed out 2 changesets (bug 1519718) for performance regression (bug 1530611) on a CLOSED TREE.
Backed out changeset 9bae35dc1471 (bug 1519718)
Backed out changeset 640e731ed52e (bug 1519718)

--HG--
extra : rebase_source : ee2bc4503c84e709f7cd2265b4b6286960c20d4a
2019-03-06 11:47:53 +02:00
Ciure Andrei
253bf420a1 Merge inbound to mozilla-central. a=merge 2019-03-05 06:20:52 +02:00
Ciure Andrei
5ebab45abd Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-04 23:54:12 +02:00
Glenn Watson
31fb2275a2 Bug 1531524 - Support running wrench on Android. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D21881

--HG--
extra : moz-landing-system : lando
2019-03-04 18:49:52 +00:00
Dzmitry Malyshau
fbd7d832eb Bug 1531930 - Interneration refactoring r=gw
Remove the intern_types module in favor of the associated Internable types that we already have.
The only bit of magic I had to do is around serialization bounds, and it's nicely isolated.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 16:48:40 +00:00
Andrew Osmond
8e407b7327 Bug 1526756 - Snap brushes for pictures to the primitive instead of visible rect. r=kvark
A picture can have its own unique clip which was not considered by its
children when calculating their visible rects. As a result, if a picture
clips its primitive rect for snapping purposes, it may produce a
different snapping offset than expected. We should instead just snap to
the primitive rect itself for the picture, since it is the union of the
visible rects that we snapped to for the children.

Differential Revision: https://phabricator.services.mozilla.com/D21778
2019-03-04 14:21:18 -05:00
Bogdan Tara
f516b0e3b5 Backed out changeset 458edf3460d4 (bug 1531930) for tidy bustage CLOSED TREE 2019-03-04 05:58:40 +02:00
Dzmitry Malyshau
2ef785bda1 Bug 1531930 - Interneration refactoring r=gw
Remove the intern_types module in favor of the associated Internable types that we already have.
The only bit of magic I had to do is around serialization bounds, and it's nicely isolated.

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

--HG--
extra : moz-landing-system : lando
2019-03-03 21:14:49 +00:00
Dzmitry Malyshau
79ad259c7c Bug 1531217 - Document origin rewrite and framebuffer coordinates r=gw,nical
The goal of this change was to simplify the semantics of our document placement and split the logical elements inside (display list) from the actual screen rectangle occupied by a document.
To achieve that, we introduce the framebuffer space for things Y-flipped on screen.
We fix the frame outputs, so that they get produced on the first frame without loopback from the frame building to scene building.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 17:16:59 +00:00
Csoregi Natalia
b2672c85cf Backed out changeset 93f7dc3084a1 (bug 1531217) for wrench failures. CLOSED TREE 2019-03-01 18:48:30 +02:00
Dzmitry Malyshau
57074df49b Bug 1531776 - Spew debug messages on GL error r=nical
example error
ERROR 2019-03-01T15:23:27Z: webrender::device::gl: (error) GL_INVALID_ENUM error generated. Invalid primitive mode.
thread 'main' panicked at 'Caught GL error 500 at 'draw_elements_instanced'', webrender/src/device/gl.rs:1098:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 15:42:33 +00:00
Dzmitry Malyshau
a8d4f45a20 Bug 1531217 - Document origin rewrite and framebuffer coordinates r=gw,nical
The goal of this change was to simplify the semantics of our document placement and split the logical elements inside (display list) from the actual screen rectangle occupied by a document.
To achieve that, we introduce the framebuffer space for things Y-flipped on screen.
We fix the frame outputs, so that they get produced on the first frame without loopback from the frame building to scene building.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 14:25:36 +00:00
Nicolas Silva
9ad4994f85 Bug 1530978 - Show profiler stats averaged over half a second instead of 600 frames. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D21392

--HG--
extra : moz-landing-system : lando
2019-02-27 20:00:56 +00:00
Nicolas Silva
e5891efca7 Bug 1530730 - Update plane-split to 0.13.7. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D21503

--HG--
extra : moz-landing-system : lando
2019-02-28 16:04:29 +00:00
Kartikaya Gupta
a23137f08f Bug 1531512 - Mark unused variables as unused for non-windows. r=kvark
rustc 1.33 is smart enough to detect and complain about this.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 04:04:46 +00:00
Glenn Watson
c01089654e Bug 1531248 - Reduce the number of resolve / copy steps in WR on mobile devices. r=kvark
This patch fixes some wasted GPU time on mobile devices due to
redundant resolve / copy steps.

In the first case, we would previously do:
 - Global clear of color / depth on main framebuffer.
 - Bind and draw off-screen targets.
 - Bind main framebuffer and draw scene.

Between step 1 and 2, a resolve step is triggered on tiled GPU
drivers, wasting a lot of GPU time. To fix this, the clear is
now deferred until the framebuffer of the first document is
drawn. This does slightly change the semantics of how WR does
clear operations, but I think it works fine and makes more sense.

In the second case, we would previously do:
 - ...
 - Draw main framebuffer
 - End frame and invalidate the contents of input textures.
 - Bind main framebuffer and draw debug overlay.

This also introduces an extra resolve / copy step, even if the
debug overlay is not enabled. To fix this, the invalidation step
of the input textures to the main framebuffer pass is deferred
until all drawing is complete on the main framebuffer, by doing
the invalidation in the end_frame() call of the texture resolver.

Together, these save a very significant amount of ms per frame
in GPU time on the mobile devices I tested.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 19:50:44 +00:00
Doug Thayer
2353e50eed Bug 1441308 - Fix picture-caching interaction with doc spitting r=gw
This is a stab at what the correct approach to this should be. It
seems that we should be using the window size here and not the
screen_rect, as the screen_rect is not used to offset what we
normally draw, but instead generally for scissoring(?). The end
result is if we use an offset screen_rect, we end up applying
the offset of the chrome area twice, once because the document's
screen rect is offset, and once because of the tile.world_rect
offset.

Depends on D20696

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

--HG--
extra : moz-landing-system : lando
2019-02-28 19:15:15 +00:00
Dorel Luca
3f139c9c3f Backed out 2 changesets (bug 1529117) for build bustage
Backed out changeset 82cfcc2f5fac (bug 1529117)
Backed out changeset d9fd8225a95f (bug 1529117)
2019-02-27 13:27:50 +02:00
Kartikaya Gupta
0699c44e5a Bug 1529117 - Bump serde and 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-27 11:09:50 +00:00
Glenn Watson
fde9185d49 Bug 1530915 - Change external scroll offset to be a vector. r=emilio
Change the external scroll offset to be a vector, rather than a
point. This can also be updated gecko-side in future, but for
now is converted to a vector at the API boundary.

Also plumb through the external scroll offset so that it is stored
inside the ScrollFrameInfo in a spatial node. This will allow
modifying the transforms that the clip-scroll tree creates to
take into account the external scroll offset in future.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 05:26:50 +00:00
shindli
c442603050 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-26 18:58:45 +02:00
shindli
c780ef516c Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-26 12:20:22 +02:00
Glenn Watson
1008811aea Bug 1530518 - Refactor the way stacking context coords are converted to reference frame coords. r=emilio
This doesn't introduce any functional changes. However, it refactors
the way that stacking context coords are converted into reference
frame relative coordinates.

Having a single method to retrieve the current offset will make it
easier to take advantage of the newly added API that allows Gecko
to supply initial scroll offsets for scroll nodes. In turn, this
will allow WR to normalize the local coordinates of primitives, which
will allow future improvements and simplifications to the picture
caching implementation.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 22:31:06 +00:00
Glenn Watson
1500229636 Bug 1530242 - Enable some picture caching invalidation tests in wrench. r=emilio
A number of small tweaks to enable the picture caching invalidation
tests. With this in place, we can start adding more test coverage
for various invalidation scenarios.

- Make the reference image render after the test images, so that dirty
  region tracking is more intuitive.
- Instead of replaying the same frame in wrench to ensure frames are
  caching, try to cache tiles every frame when testing mode is enabled.
- Add a basic invalidation test for a rectangle with color that changes
  each frame.
- Make the dirty region index implicit and rename dirty_region to dirty
  in reftest format.
- Fix an underflow error when moving to next frame in wrench.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 22:25:22 +00:00
Noemi Erli
7e23372938 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : de8796d5d7d7079af1b895a2f537371885f8cc6c
2019-02-26 00:09:40 +02:00
Kartikaya Gupta
280260b8d0 Bug 1519718 - Follow-up to bump the fuzz number slightly, so the test passes on AppVeyor too. rs=kvark 2019-02-25 09:04:23 -05:00
Dzmitry Malyshau
0bf19769e6 Bug 1519718 - WR mix-blend rewrite r=gw
This is a new implementation of mix-blend compositing that is meant to be more idiomatic to WR and efficient.

Previously, mix-blend mode was composed in the following way:
  1. parent stacking context was forced to isolate
  2. source picture is also isolated
  3. when rendering the isolated context, the framebuffer is read upon reaching the source. Both the readback and the source are placed in the RT cache.
  4. a mix-blend draw call is issued to read from those cache segments and blend on top of the backdrop

The new implementation works by using the picture cutting (intruduced for preserve-3D contexts earlier) and some bits of magic:
  1. backdrop stacking context is isolated with a special composition mode that prevents it from actually rendeing unless the suorce stacking context is invisible.
  2. source stacking context is isolated with mix-blend composition mode that has a pointer to the backdrop picture
  3. the instance of the backdrop picture is placed as a peer of the source picture (not a child)
  4. if the backdrop is invisible, the source is drawn as a simple blit
  5. otherwise, it's a draw call that reads from the isolated backdrop and source textures

Note the differences:
  - parent stacking context is not isolated, but backdrop is
  - no framebuffer readback is involved
  - the source and backdrop pictures are rendered in parallel in a pass, improving the batching
  - we don't blend onto the backdrop while reading from the backdrop copy at the same time
  - the depth of the render pass tree is reduced: previously the parent and the source were isolated, now the source and the backdrop, which are siblings

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

--HG--
rename : gfx/wr/wrench/reftests/blend/multiply-2-ref.yaml => gfx/wr/wrench/reftests/blend/multiply-3-ref.yaml
rename : gfx/wr/wrench/reftests/blend/multiply-3.yaml => gfx/wr/wrench/reftests/blend/multiply-4.yaml
extra : moz-landing-system : lando
2019-02-25 00:17:22 +00:00
Doug Thayer
9785d8bd59 Bug 1441308 - Ensure lazy init of debug renderer in draw_frame_debug_items r=gw
Document splitting is crashing with early initialization of the debug
renderer. Not sure why, and this is just a temporary workaround, but
one that I think we want anyway, as we don't want to be unnecessarily
lazy-initting the debug renderer.

Depends on D20698

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

--HG--
extra : moz-landing-system : lando
2019-02-26 15:29:15 +00:00
Razvan Maries
98aa3c3fde Backed out 2 changesets (bug 1519718) for causing perma fails on blend-gradient-background-color.html. a=backout
Backed out changeset 4f11ca736067 (bug 1519718)
Backed out changeset 4fefbf627bfc (bug 1519718)

--HG--
rename : gfx/wr/wrench/reftests/blend/multiply-3-ref.yaml => gfx/wr/wrench/reftests/blend/multiply-2-ref.yaml
2019-02-24 16:16:30 +02:00
Dzmitry Malyshau
9ddfc7834c Bug 1519718 - Remove accidental wrench log r=kats
Log was landed my mistake in https://phabricator.services.mozilla.com/D20608

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

--HG--
extra : moz-landing-system : lando
2019-02-23 19:31:15 +00:00
Dzmitry Malyshau
575dd4463b Bug 1519718 - WR mix-blend rewrite r=gw
This is a new implementation of mix-blend compositing that is meant to be more idiomatic to WR and efficient.

Previously, mix-blend mode was composed in the following way:
  1. parent stacking context was forced to isolate
  2. source picture is also isolated
  3. when rendering the isolated context, the framebuffer is read upon reaching the source. Both the readback and the source are placed in the RT cache.
  4. a mix-blend draw call is issued to read from those cache segments and blend on top of the backdrop

The new implementation works by using the picture cutting (intruduced for preserve-3D contexts earlier) and some bits of magic:
  1. backdrop stacking context is isolated with a special composition mode that prevents it from actually rendeing unless the suorce stacking context is invisible.
  2. source stacking context is isolated with mix-blend composition mode that has a pointer to the backdrop picture
  3. the instance of the backdrop picture is placed as a peer of the source picture (not a child)
  4. if the backdrop is invisible, the source is drawn as a simple blit
  5. otherwise, it's a draw call that reads from the isolated backdrop and source textures

Note the differences:
  - parent stacking context is not isolated, but backdrop is
  - no framebuffer readback is involved
  - the source and backdrop pictures are rendered in parallel in a pass, improving the batching
  - we don't blend onto the backdrop while reading from the backdrop copy at the same time
  - the depth of the render pass tree is reduced: previously the parent and the source were isolated, now the source and the backdrop, which are siblings

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

--HG--
rename : gfx/wr/wrench/reftests/blend/multiply-2-ref.yaml => gfx/wr/wrench/reftests/blend/multiply-3-ref.yaml
rename : gfx/wr/wrench/reftests/blend/multiply-3.yaml => gfx/wr/wrench/reftests/blend/multiply-4.yaml
extra : moz-landing-system : lando
2019-02-23 03:34:56 +00:00
Kartikaya Gupta
b8ad25821d Bug 1499113 - Multiply transform scales into the blur radius for blur filters. r=kvark
Without this patch any enclosing scale transform between a blurred
picture and the nearest raster root was being ignored entirely for the
purposes of blur.

Also includes a couple of reftests to exercise this code.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 17:12:17 +00:00
Kartikaya Gupta
3d5d6cd639 Bug 1499113 - Turn the blur stddev value into a tuple with horizontal and vertical components. r=kvark
This patch is just plumbing; no functional changes intended.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 17:33:24 +00:00
Jamie Nicol
8ad32e5644 Bug 1498732 - Ensure PBO texture upload is performed asynchronously on webrender on Adrenos. r=kvark
Currently on Android we upload texture data to the webrender texture
cache using a PBO. On Adreno GPUs, however, this upload is still being
done synchronously, and profiles show a lot of time spent waiting in
glTexSubImage3D.

The problem is that the stride of the data in the PBO is not a
multiple of 256 bytes, so the driver is not able to DMA the upload.

This patch ensures that data is laid out optimally in the PBO, using
glMapBufferRange then copying the data line-by-line if required. This
allows the driver to perform the upload asynchronously as intended.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:00:09 +00:00
Jamie Nicol
32ffe0f9b1 Bug 1498732 - Update gleam to 0.6.9. r=kats
This provides the functions glMapBufferRange and glUnmapBuffer.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 14:59:01 +00:00
Coroiu Cristina
6a915c899d Merge mozilla-central to inbound a=merge 2019-02-22 18:41:16 +02:00
Nicolas Silva
b9092ff14c Bug 1528753 - Update euclid dependency. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D20176

--HG--
extra : moz-landing-system : lando
2019-02-21 14:41:36 +00:00
Nicolas Silva
6ccb0762a3 Bug 1528753 - Compute the layout space tiling origin. r=kvark
The tiling origin is computed withing image::tiles instead of being provided to the function.
In addition, the image rect in device space is exposed as function parameter.
In a followup, callers will have to determine the correct image rect using the blob image's visible area.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 18:16:41 +00:00
Nicolas Silva
fd337e9ded Bug 1476368 - Add VecHelper::take/take_and_preallocate. r=gw
--HG--
extra : source : 8bc9ab1a56f9985c0c8e6c85758a121d577b264f
extra : histedit_source : 3155f5881349ec818032547492e83532a894d32c
2019-02-19 17:53:31 +01:00
Nicolas Silva
f9b5d37783 Bug 1476368 - Avoid moving picture primitives when destroying them. r=gw
--HG--
extra : source : 88f409bc495a135764d75ac22802c2fca94d7be3
extra : histedit_source : fa57c05c5227b676ba5f7c582c00b6d1511d89be
2019-02-19 18:39:06 +01:00
Nicolas Silva
93f732bfcd Bug 1476368 - Avoid moving texture cache entries when evicting them. r=gw
--HG--
extra : source : 03e1b2ae53bb312d91f7251740a9cc575d7ac3cd
extra : histedit_source : 463663b79fd134e72e5130b642d347d0244340cb
2019-02-20 09:16:44 +01:00
Nicolas Silva
859c756fae Bug 1476368 - Pre-allocate primitives vector in setup_picture_caching. r=gw
--HG--
extra : source : 32aa85626f6c484dff616ec9ae78ca53ea38dec5
extra : histedit_source : 109a92a512932d686f31906c37392f5f55db18e8
2019-02-20 10:01:28 +01:00
Nicolas Silva
b6c94f1ece Bug 1476368 - Pre-allocate vectors in HitTester::read_clip_scroll_tree. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D20507

--HG--
extra : source : 96b0377ea3ce47ef806331cb7ca7881aaafdf2c1
extra : histedit_source : 97034307c821c468828f65a9aeb9436fd7cd7e7b
2019-02-20 10:11:09 +01:00
Nicolas Silva
a9803d039d Bug 1529272 - Reduce the amount of allocations, hashing and moves related to FontInstance. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D20503

--HG--
extra : source : 8c408c32fb6fdd1162938336ab26ece65a249c82
extra : histedit_source : c19032ba76065988f2fb4bc62d207e2437bfb90e
2019-02-22 14:53:37 +01:00
Timothy Nikkel
c85a512b81 Bug 1505871. Add a wrench reftest. 2019-02-26 00:16:37 -06:00
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
Dan Glastonbury
3ae3119574 Bug 1522218 - An assortment of scaled border wrench reftests. r=gw
Depends on D17456

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

--HG--
extra : moz-landing-system : lando
2019-01-30 09:02:16 +00:00
Dan Glastonbury
2a84ee8b7c Bug 1522218 - Incorporate layout to world scaling for borders. r=gw,mattwoodrow
Implement scaling of borders using the same scale extraction and clamping to
nearest power of two that gecko uses in FrameLayerBuilder::ChooseScale.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 04:08:23 +00:00
Bobby Holley
06c9ebf4d3 Bug 1512287 - Support incremental invalidation tests in wrench. r=gw
Note that the dirty rect assertions don't seem to quite work yet, but
Glenn is going to take over that last piece.

Depends on D17995

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

--HG--
extra : moz-landing-system : lando
2019-01-30 17:18:09 +00:00
Bobby Holley
eb9412b5fb Bug 1512287 - Don't recalculate root_clip_rect if in the root pipeline. r=gw
The current code panics with an out-of-bounds access here if picture
caching is used outside an iframe.

Depends on D17994

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:59:04 +00:00
Bobby Holley
44128c7c85 Bug 1512287 - Enable picture caching after 1 frame of identical content, rather than two, and expose constant. r=gw
Per discussion with gw, the current behavior is an oversight. We also
want to expose this to wrench.

Depends on D17993

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:58:40 +00:00
Bobby Holley
f12e716db2 Bug 1512287 - Use smaller tiles during testing. r=gw
Depends on D17992

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:57:52 +00:00
Bobby Holley
d9c60f139c Bug 1512287 - Expose dirty regions to wrench. r=gw
Depends on D17991

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:57:37 +00:00
Bobby Holley
c7b68459e9 Bug 1512287 - Add a testing mode to WebRender. r=gw
There are various testing-only things we want to do here, specifically
copying around dirty regions, and shrinking the tile size. We could make
each of these specific options and thread them all through to the right
places, but that adds complexity without a use-case. So we just add a
simple testing mode for wrench.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:55:25 +00:00
Nicolas Silva
08852a6035 Bug 1494403 - Support arbitrary tiling origins and negative tile offsets in the tile decomposition algorithm. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D17123

--HG--
extra : moz-landing-system : lando
2019-01-29 16:36:47 +00:00
shindli
f7752f11b1 Merge inbound to mozilla-central. a=merge 2019-01-30 06:07:01 +02:00
Lee Salzman
27349e0008 Bug 1512010 - add wrench test for text snapping in raster spaces. r=gw 2019-01-29 17:24:18 -05:00
Emilio Cobos Álvarez
1b7e29eab8 Bug 1523436 - Remove a FIXME comment that turns out is not valid. 2019-01-29 21:36:34 +01:00
Dzmitry Malyshau
1df57d7ca5 Bug 1431582 - WR support non-locally-rasterized split planes r=gw
Now that we no longer guarantee that a picture with perspective transform is rasterized in local space, we need to ensure that the shaders don't apply perspective correction to the texture coordinates twice.
For that to be the case, we pass an extra flag to the plane splitting shader, and un-do the perspective correction if it's not enabled.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 19:34:55 +00:00
Cosmin Sabou
7c0150b58c Backed out changeset 131a5437e7d3 (bug 1431582) for causing wrench bustages. 2019-01-29 17:59:49 +02:00
Dzmitry Malyshau
a68eff5db8 Bug 1431582 - WR support non-locally-rasterized split planes r=gw
Now that we no longer guarantee that a picture with perspective transform is rasterized in local space, we need to ensure that the shaders don't apply perspective correction to the texture coordinates twice.
For that to be the case, we pass an extra flag to the plane splitting shader, and un-do the perspective correction if it's not enabled.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:31:09 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Lee Salzman
56444ece80 Bug 1512010 - snap text positions without device transform in local raster space. r=gw 2019-01-28 22:23:00 -05:00
Sebastian Hengst
90f4b6640c Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 01:33:28 +02:00
Andrew Osmond
b651af0b33 Bug 1431582 - Add reduced test case for 3d transform bugs. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D17864
2019-01-28 15:50:48 -05:00
Glenn Watson
11edbcda9f Bug 1523228 - Use down scaling more often to avoid blurs on very large blur radii. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17797

--HG--
extra : moz-landing-system : lando
2019-01-28 09:14:46 +00:00
Glenn Watson
738c89e95d Bug 1523210 - Fix text runs being interned due to scroll offsets. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D17792

--HG--
extra : moz-landing-system : lando
2019-01-28 05:18:19 +00:00
Csoregi Natalia
1a6807b8f2 Backed out changeset 8d47e7f253d8 (bug 1523210) for wrench failures. CLOSED TREE 2019-01-28 06:34:57 +02:00
Glenn Watson
42fff5a810 Bug 1523210 - Fix text runs being interned due to scroll offsets. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D17792

--HG--
extra : moz-landing-system : lando
2019-01-28 02:55:00 +00:00
Glenn Watson
aaa0feb2a4 Bug 1522758 - Optimize drawing axis aligned clip rectangles into clip masks. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D17606

--HG--
extra : moz-landing-system : lando
2019-01-26 21:11:53 +00:00
Glenn Watson
60a3387844 Bug 1521441 - Remove unused clear color mode. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17092

--HG--
extra : moz-landing-system : lando
2019-01-26 20:37:47 +00:00
Emilio Cobos Álvarez
bed2fdf437 Bug 1522555 - Remove a lot of dead code. r=kvark
We can always pull this back from history should we need it, but given
how broken the texture caching of pictures was (see the recent text shadow
story) I suspect we won't.

Differential Revision: https://phabricator.services.mozilla.com/D17524
2019-01-26 01:19:03 +01:00
Matt Woodrow
be0e931d5e Bug 1514383 - Only clip the outermost Picture in a stacking context, since we sometimes need the inner pixels for filter rendering. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D17595

--HG--
extra : moz-landing-system : lando
2019-01-25 19:32:20 +00:00
Emilio Cobos Álvarez
a2231bd95c Bug 1498639 - Give WR the id of the scroll frame perspective scrolls relative to, and compute the right transform based on that. r=kats,kvark
I think this is as clean as it can get.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 23:41:08 +00:00
Emilio Cobos Álvarez
b98d3b313f Bug 1522555 - Tweak a bit the fuzzy range of border-suite-2 since automation generates a slightly different image. r=bustage a=Aryx 2019-01-25 13:27:14 +02:00
Emilio Cobos Álvarez
18f7b695bb Bug 1522555 - Update border-suite-2.png again because the corners changed again when merged to central. r=bustage a=Aryx 2019-01-25 11:00:51 +01:00
Narcis Beleuzu
3a7fba9cb8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-25 06:31:03 +02:00
Narcis Beleuzu
6788c5b994 Merge autoland to mozilla-central. a=merge 2019-01-25 06:27:18 +02:00
Glenn Watson
a792eb73a1 Bug 1522395 - Fix double inflation of text shadow bounds. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D17468

--HG--
extra : moz-landing-system : lando
2019-01-25 00:28:46 +00:00
shindli
770fc86d09 Backed out changeset c61a5f1a655c (bug 1522555) for wrench bustages in reftests/border/border-suite-2.png. a=backout CLOSED TREE
--HG--
extra : source : ee1dce651a922e79f0296dc23375a32aa3a5465b
2019-01-24 20:54:01 +02:00
Emilio Cobos Álvarez
e4fc089556 Bug 1522555 - Remove a lot of dead code. r=kvark
We can always pull this back from history should we need it, but given
how broken the texture caching of pictures was (see the recent text shadow
story) I suspect we won't.

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

--HG--
extra : moz-landing-system : lando
2019-01-24 17:31:20 +00:00
Ciure Andrei
763557eef3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-24 05:47:10 +02:00
Ciure Andrei
c035ee7d3a Merge inbound to mozilla-central. a=merge 2019-01-24 05:44:33 +02:00
Glenn Watson
6b33b8f6a1 Bug 1522352 - Add GPU timer group for scale operations. r=kamidphish
Differential Revision: https://phabricator.services.mozilla.com/D17432

--HG--
extra : moz-landing-system : lando
2019-01-24 02:32:08 +00:00
Dan Glastonbury
e17294b6e9 Bug 1518840 - P2: Clean up dead code warnings. r=gw
Depends on D17329

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

--HG--
extra : moz-landing-system : lando
2019-01-23 23:41:59 +00:00
Dan Glastonbury
045163d3ea Bug 1518840 - P1: Remove rendering blurs into texture cache. r=gw,emilio
Caching text-shadows into texture cache was leading to rendering artifacts with
missing shadows.  Switch to using the picture path for all picture blurs and
rely upon picture caching to reduce repetitive work.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 23:41:51 +00:00
Bobby Holley
a3a657a463 Bug 1522654 - Make the primitive debug display paint a transparent rect for pictures. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D17545
2019-01-24 14:14:52 -08:00
Glenn Watson
acb7379c4c Bug 1522351 - Improve accuracy of subpixel box shadows. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17431

--HG--
extra : moz-landing-system : lando
2019-01-24 21:38:18 +00:00
shindli
03887afb69 Backed out changeset 9a347a546d90 (bug 1522351) for wrench bustage in reftests/boxshadow/no-stretch.png CLOSED TREE 2019-01-24 22:30:24 +02:00
Glenn Watson
892eb7ec20 Bug 1522351 - Improve accuracy of subpixel box shadows. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17431

--HG--
extra : moz-landing-system : lando
2019-01-24 20:07:46 +00:00
Emilio Cobos Álvarez
89d4f21d5f Bug 1522555 - Remove a lot of dead WebRender code. r=kvark
We can always pull this back from history should we need it, but given
how broken the texture caching of pictures was (see the recent text shadow
story) I suspect we won't.

Differential Revision: https://phabricator.services.mozilla.com/D17524
2019-01-24 20:41:51 +01:00
shindli
788e6ecb86 Backed out changeset c61a5f1a655c (bug 1522555) for wrench bustages in reftests/border/border-suite-2.png CLOSED TREE 2019-01-24 20:54:01 +02:00
Bobby Holley
5125653f0b Bug 1522017 - Don't push an extra stacking context for iframes, and eliminate solid rect at pipeline roots. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D17437
2019-01-24 10:44:36 -08:00
Bobby Holley
fed23c9e3e Bug 1522017 - Clip picture caching debug display to avoid overflowing the browser chrome. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D17436
2019-01-24 10:44:36 -08:00
Bobby Holley
bf4d481f78 Bug 1522017 - Make picture caching explicit. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D17435
2019-01-24 10:44:35 -08:00
Lee Salzman
73c1f50be6 Bug 1455848 - implement shared cache of dwrote font files. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16898
2019-01-17 15:45:36 -05:00
Lee Salzman
78dc1ee852 Bug 1455848 - update dwrote to version 0.8. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16897
2019-01-17 15:45:26 -05:00
Lee Salzman
c7d1539b15 Bug 1455848 - use paths for WR font handles on Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16896
2019-01-17 15:45:07 -05:00
Razvan Maries
6161f7cc5b Backed out 4 changesets (bug 1455848) for windows wrench failures. CLOSED TREE
Backed out changeset d56504db04ea (bug 1455848)
Backed out changeset f2279ecacb81 (bug 1455848)
Backed out changeset 44a36f0fe512 (bug 1455848)
Backed out changeset b8444f241aca (bug 1455848)
2019-01-24 00:56:40 +02:00
Lee Salzman
10e72eb4f8 Bug 1455848 - fix wrench font_key_from_name parameter order. r=me CLOSED TREE 2019-01-23 17:04:13 -05:00
Lee Salzman
a2496f28df Bug 1455848 - implement shared cache of dwrote font files. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16898
2019-01-17 15:45:36 -05:00
Lee Salzman
bae6f29257 Bug 1455848 - update dwrote to version 0.8. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16897
2019-01-17 15:45:26 -05:00
Lee Salzman
bd0b2ed9f0 Bug 1455848 - use paths for WR font handles on Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16896
2019-01-17 15:45:07 -05:00
Glenn Watson
a3f39cf275 Bug 1522028 - Avoid interning text run primitives due to scrolled offset field. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17317

--HG--
extra : moz-landing-system : lando
2019-01-23 03:48:19 +00:00
Glenn Watson
22c54cabc1 Bug 1521689 - Reduce invalidations caused by world clip rects. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17206

--HG--
extra : moz-landing-system : lando
2019-01-23 03:47:21 +00:00
Glenn Watson
46344e15fc Bug 1522022 - Inflate picture caching dirty rects when encountering a blur filter. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17316

--HG--
extra : moz-landing-system : lando
2019-01-23 03:17:56 +00:00
Bobby Holley
838d3eb9fd Bug 1521920 - Remove conditional compilation around debug_renderer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17284

--HG--
extra : moz-landing-system : lando
2019-01-22 21:29:24 +00:00
shindli
d155d957c2 Backed out changeset 3bf9f045d452 (bug 1521805) for wrench failure in reftests/text/decorations-suite.png CLOSED TREE 2019-01-22 22:40:02 +02:00