gecko-dev/gfx
Miko Mynttinen 8168ef50b5 Bug 1620005 - Refactor WebRender display item caching r=jrmuizel
DisplayItemBuilder now has methods:
```
void StartGroup(nsPaintedDisplayItem* aItem);
void CancelGroup();
void FinishGroup();
bool ReuseItem(nsPaintedDisplayItem* aItem);
```
WebRender display items previously created between calls to StartGroup() and FinishGroup() will be reused by a call to ReuseItem(),
which will push DisplayItem::ReuseItem(key) to WR display list, if the Gecko display item has been retained and reused.
Calling CancelGroup() will discard the display items that have been pushed after calling StartGroup().

For example, inside nsDisplayBackgroundColor::CreateWebRenderCommands():
```
aBuilder.StartGroup(this);
aBuilder.PushRect(r, r, !BackfaceIsHidden(),
                  wr::ToColorF(ToDeviceColor(mColor)));
aBuilder.FinishGroup();
```

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

--HG--
extra : moz-landing-system : lando
2020-03-11 18:13:45 +00:00
..
2d Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
angle Bug 1608235 - [ANGLE] Validate `context` before use. r=sotaro 2020-01-23 02:59:17 +00:00
cairo Bug 1584639 - silence Cairo shift warnings. r=aosmond 2019-11-19 11:49:35 +00:00
config Backed out 12 changesets (bug 1612941) for webrender linting bustage CLOSED TREE 2020-03-11 14:28:55 +02:00
docs Bug 1605508 - Write new on-boarding document with rendering overview 2020-01-30 08:51:03 +00:00
gl Bug 1619270 [Wayland] Check we're really on Wayland and not on headless, r=jhorak 2020-03-05 10:20:48 +00:00
graphite2 Bug 1569369 - Add RLBox verifications to tainted data from sandboxed libGraphite r=jfkthame 2019-12-19 16:05:47 +00:00
harfbuzz Bug 1613996 - Try to avoid instantiating an FT_Face just to read the font's charmap for FindFontForChar. r=lsalzman 2020-02-09 04:18:22 +00:00
ipc Backed out 2 changesets (bug 1614933) for busages complaining about IdleSchedulerChild.cpp CLOSED TREE 2020-03-10 17:21:55 +02:00
layers Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
ots
qcms Bug 1615394 - Add color management support to the BMP decoder. r=tnikkel 2020-03-03 14:16:00 +00:00
sfntly Bug 1583192 - Re-apply bug 1330495 after bug 1581145. r=froydnj 2019-11-11 13:41:11 +00:00
skia Bug 1600470 - Reduce the emboldening strength used for synthetic-bold faces with FreeType. r=lsalzman 2019-12-17 15:51:57 +00:00
src Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
tests Bug 1616444 - Ensure gradients are properly color managed with WebRender. r=jrmuizel 2020-03-09 17:11:54 +00:00
thebes Backed out 12 changesets (bug 1612941) for webrender linting bustage CLOSED TREE 2020-03-11 14:28:55 +02:00
vr Backed out 2 changesets (bug 1614933) for busages complaining about IdleSchedulerChild.cpp CLOSED TREE 2020-03-10 17:21:55 +02:00
webrender_bindings Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
wgpu Bug 1614703 - WebGPU render pipeline creation r=jgilbert,webidl,baku 2020-03-03 16:37:02 +00:00
wr Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
ycbcr Bug 1439659 - Make |MOZ_{LITTLE,BIG}_ENDIAN| into function macros so that invoking them inside |#if| conditions when they haven't been defined yet is a compile error. r=froydnj 2019-12-13 20:51:04 +00:00
moz.build Bug 1594907 - Fix some duplicate URL segments in firefox-source-docs, r=sylvestre 2019-11-07 23:07:20 +00:00