Bug 1452426. Hook up invalidation testing in WebRender. r=mstange

This commit is contained in:
Jeff Muizelaar 2018-08-30 18:29:08 -04:00
parent c4053ead28
commit a21bea480d

View File

@ -767,6 +767,9 @@ struct DIGroup
}
aContext->NewPath();
GP("painting %s %p-%d\n", item->Name(), item->Frame(), item->GetPerFrameKey());
if (aGrouper->mDisplayListBuilder->IsPaintingToWindow()) {
item->Frame()->AddStateBits(NS_FRAME_PAINTED_THEBES);
}
item->Paint(aGrouper->mDisplayListBuilder, aContext);
if (currentClip.HasClip()) {
aContext->Restore();
@ -1650,6 +1653,9 @@ PaintItemByDrawTarget(nsDisplayItem* aItem,
default:
context->SetMatrix(context->CurrentMatrix().PreScale(aScale.width, aScale.height).PreTranslate(-aOffset.x, -aOffset.y));
if (aDisplayListBuilder->IsPaintingToWindow()) {
aItem->Frame()->AddStateBits(NS_FRAME_PAINTED_THEBES);
}
aItem->Paint(aDisplayListBuilder, context);
isInvalidated = true;
break;