Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel

Per our discussion, this patch splits out the state management bits of
WebRenderLayerManager, allowing for them to be maintained per-document.

Differential Revision: https://phabricator.services.mozilla.com/D13577
This commit is contained in:
Doug Thayer committed 2019-01-07 21:33:10 +00:00
1 parent d4353b9d98
commit 270156fb2e
53 files changed
+674 -408

No files matched your search

+3 -2
View File
@@ -195,7 +195,8 @@ class nsDisplayTextOverflowMarker final : public nsDisplayItem {
virtual bool CreateWebRenderCommands(
mozilla::wr::DisplayListBuilder& aBuilder,
mozilla::wr::IpcResourceUpdateQueue& aResources,
const StackingContextHelper& aSc, layers::WebRenderLayerManager* aManager,
const StackingContextHelper& aSc,
layers::RenderRootStateManager* aManager,
nsDisplayListBuilder* aDisplayListBuilder) override;
NS_DISPLAY_DECL_NAME("TextOverflow", TYPE_TEXT_OVERFLOW)
@@ -266,7 +267,7 @@ void nsDisplayTextOverflowMarker::PaintTextToContext(gfxContext* aCtx,
bool nsDisplayTextOverflowMarker::CreateWebRenderCommands(
mozilla::wr::DisplayListBuilder& aBuilder,
mozilla::wr::IpcResourceUpdateQueue& aResources,
const StackingContextHelper& aSc, layers::WebRenderLayerManager* aManager,
const StackingContextHelper& aSc, layers::RenderRootStateManager* aManager,
nsDisplayListBuilder* aDisplayListBuilder) {
bool snap;
nsRect bounds = GetBounds(aDisplayListBuilder, &snap);