gecko-dev/gfx/wr/webrender
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
..
doc Bug 1518605 - Update webrender to commit e16ab884672151fbdebc149479f9bfdecd1da216 (WR PR #3251). r=kats 2019-01-09 03:27:04 +00:00
res Bug 1491929 - Text is rasterized at the wrong resolution. r=kvark 2019-02-19 20:25:40 +00:00
src Bug 1529378 - Corruption on Google Calendar time period selector. r=kvark 2019-02-21 03:05:59 +00:00
tests Bug 1514381 - Update webrender to commit ff9d6b5bf1b72258e061bd661c90708589ecae3e (WR PR #3420). r=kats 2018-12-17 13:54:09 +00:00
Cargo.toml Bug 1527884 - WebRender version 0.60.0. r=emilio 2019-02-15 02:54:40 +00:00
build.rs Bug 1517616 - Update webrender to commit a5b036eced81dcfc012f1335277af595f931fb11 (WR PRs #3463 and #3464). r=kats 2019-01-04 04:21:27 +00:00