зеркало из https://github.com/mozilla/gecko-dev.git
8168ef50b5
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 |
||
---|---|---|
.. | ||
AsyncImagePipelineManager.cpp | ||
AsyncImagePipelineManager.h | ||
ClipManager.cpp | ||
ClipManager.h | ||
DisplayItemCache.cpp | ||
DisplayItemCache.h | ||
IpcResourceUpdateQueue.cpp | ||
IpcResourceUpdateQueue.h | ||
RenderRootBoundary.h | ||
RenderRootStateManager.cpp | ||
RenderRootStateManager.h | ||
RenderRootTypes.cpp | ||
RenderRootTypes.h | ||
StackingContextHelper.cpp | ||
StackingContextHelper.h | ||
WebRenderBridgeChild.cpp | ||
WebRenderBridgeChild.h | ||
WebRenderBridgeParent.cpp | ||
WebRenderBridgeParent.h | ||
WebRenderCanvasRenderer.cpp | ||
WebRenderCanvasRenderer.h | ||
WebRenderCommandBuilder.cpp | ||
WebRenderCommandBuilder.h | ||
WebRenderCompositionRecorder.cpp | ||
WebRenderCompositionRecorder.h | ||
WebRenderDrawEventRecorder.cpp | ||
WebRenderDrawEventRecorder.h | ||
WebRenderImageHost.cpp | ||
WebRenderImageHost.h | ||
WebRenderLayerManager.cpp | ||
WebRenderLayerManager.h | ||
WebRenderLayersLogging.cpp | ||
WebRenderLayersLogging.h | ||
WebRenderMessageUtils.h | ||
WebRenderScrollData.cpp | ||
WebRenderScrollData.h | ||
WebRenderScrollDataWrapper.h | ||
WebRenderTextureHost.cpp | ||
WebRenderTextureHost.h | ||
WebRenderUserData.cpp | ||
WebRenderUserData.h |