зеркало из https://github.com/mozilla/gecko-dev.git
Bug 771219 - Restore display items when drawing a thebes layer. r=roc
This commit is contained in:
Родитель
1f740b8204
Коммит
c9a0c8bbde
|
@ -2582,6 +2582,12 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer,
|
|||
break;
|
||||
}
|
||||
|
||||
{
|
||||
ThebesLayerItemsEntry* entry =
|
||||
builder->LayerBuilder()->mThebesLayerItems.GetEntry(aLayer);
|
||||
items.SwapElements(entry->mItems);
|
||||
}
|
||||
|
||||
if (setClipRect) {
|
||||
aContext->Restore();
|
||||
}
|
||||
|
|
|
@ -218,6 +218,8 @@ public:
|
|||
/**
|
||||
* This callback must be provided to EndTransaction. The callback data
|
||||
* must be the nsDisplayListBuilder containing this FrameLayerBuilder.
|
||||
* This function can be called multiple times in a row to draw
|
||||
* different regions.
|
||||
*/
|
||||
static void DrawThebesLayer(ThebesLayer* aLayer,
|
||||
gfxContext* aContext,
|
||||
|
|
Загрузка…
Ссылка в новой задаче