Bug 1409446 - Modify the extra-clip flag to instead track more useful information. r=ethlin,mstange

Instead of just keeping a count of how many "extra clips" (aka
out-of-band clips) we have pushed, track more complex information for
each clip. In particular, track the display item's normal clip chain, as
well as the clip id of the extra clip that was pushed. This will be
needed to override clip cache information in the next patch.

MozReview-Commit-ID: AWKDTkelhyL
This commit is contained in:
Kartikaya Gupta
2017-10-24 15:45:59 -04:00
parent d930a88cfb
commit 01510dec8a
8 changed files with 56 additions and 23 deletions

View File

@@ -383,7 +383,7 @@ nsDisplayButtonBorder::CreateWebRenderCommands(mozilla::wr::DisplayListBuilder&
visible,
mFrame,
buttonRect);
mBorderRenderer->CreateWebRenderCommands(aBuilder, aResources, aSc);
mBorderRenderer->CreateWebRenderCommands(this, aBuilder, aResources, aSc);
return true;
}
@@ -551,7 +551,7 @@ nsDisplayButtonForeground::CreateWebRenderCommands(mozilla::wr::DisplayListBuild
return false;
}
mBorderRenderer->CreateWebRenderCommands(aBuilder, aResources, aSc);
mBorderRenderer->CreateWebRenderCommands(this, aBuilder, aResources, aSc);
return true;
}