gecko-dev/gfx/layers/wr
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
..
AsyncImagePipelineManager.cpp Bug 1617808 - Re-deliver PREFER_COMPOSITOR_SURFACE flag to WebRender r=gw 2020-03-10 03:52:08 +00:00
AsyncImagePipelineManager.h Bug 1616395 - Remove FfiVec. r=jrmuizel 2020-02-19 18:34:51 +00:00
ClipManager.cpp Bug 1569339 - Handle position: sticky correctly in webrender whilst zoomed. r=botond 2020-02-04 16:40:48 +00:00
ClipManager.h
DisplayItemCache.cpp Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
DisplayItemCache.h Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
IpcResourceUpdateQueue.cpp
IpcResourceUpdateQueue.h
RenderRootBoundary.h
RenderRootStateManager.cpp
RenderRootStateManager.h
RenderRootTypes.cpp
RenderRootTypes.h
StackingContextHelper.cpp
StackingContextHelper.h
WebRenderBridgeChild.cpp Bug 1613143. Don't allow an empty transaction to succeed with webrender if we haven't sent a display list to the parent. r=mattwoodrow 2020-02-12 01:40:51 +00:00
WebRenderBridgeChild.h Bug 1613143. Don't allow an empty transaction to succeed with webrender if we haven't sent a display list to the parent. r=mattwoodrow 2020-02-12 01:40:51 +00:00
WebRenderBridgeParent.cpp Bug 1620515 - Replace BlocksRingBuffer::EntryReader/Writer with ProfileBufferEntryReader/Writer - r=canaltinova 2020-03-11 21:59:19 +00:00
WebRenderBridgeParent.h Bug 1510030 - Implement WebRender backend to run background color animations on the compositor. r=gw,boris 2020-02-27 08:43:06 +00:00
WebRenderCanvasRenderer.cpp
WebRenderCanvasRenderer.h
WebRenderCommandBuilder.cpp Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
WebRenderCommandBuilder.h Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
WebRenderCompositionRecorder.cpp Bug 1616395 - Remove FfiVec. r=jrmuizel 2020-02-19 18:34:51 +00:00
WebRenderCompositionRecorder.h Bug 1616395 - Remove FfiVec. r=jrmuizel 2020-02-19 18:34:51 +00:00
WebRenderDrawEventRecorder.cpp
WebRenderDrawEventRecorder.h
WebRenderImageHost.cpp Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
WebRenderImageHost.h
WebRenderLayerManager.cpp Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
WebRenderLayerManager.h Bug 1620005 - Refactor WebRender display item caching r=jrmuizel 2020-03-11 18:13:45 +00:00
WebRenderLayersLogging.cpp
WebRenderLayersLogging.h
WebRenderMessageUtils.h
WebRenderScrollData.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in gfx. r=jrmuizel 2020-03-04 15:39:20 +00:00
WebRenderScrollData.h Bug 1599795 - Change the remote document rect to size in gfx. r=emilio 2020-02-11 03:57:14 +00:00
WebRenderScrollDataWrapper.h Bug 1599795 - Change the remote document rect to size in gfx. r=emilio 2020-02-11 03:57:14 +00:00
WebRenderTextureHost.cpp Bug 1617808 - Re-deliver PREFER_COMPOSITOR_SURFACE flag to WebRender r=gw 2020-03-10 03:52:08 +00:00
WebRenderTextureHost.h Bug 1617808 - Re-deliver PREFER_COMPOSITOR_SURFACE flag to WebRender r=gw 2020-03-10 03:52:08 +00:00
WebRenderUserData.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in gfx. r=jrmuizel 2020-03-04 15:39:20 +00:00
WebRenderUserData.h Bug 1619040 - Add a new WebRenderData specific for APZ. r=kats 2020-03-02 16:15:26 +00:00