Ejemplo n.º 1
0
void
ShadowLayerForwarder::PaintedThebesBuffer(ShadowableLayer* aThebes,
                                          const nsIntRegion& aUpdatedRegion,
                                          const nsIntRect& aBufferRect,
                                          const nsIntPoint& aBufferRotation,
                                          const SurfaceDescriptor& aNewFrontBuffer)
{
  mTxn->AddPaint(OpPaintThebesBuffer(NULL, Shadow(aThebes),
                                     ThebesBuffer(aNewFrontBuffer,
                                                  aBufferRect,
                                                  aBufferRotation),
                                     aUpdatedRegion));
}
Ejemplo n.º 2
0
void
ShadowLayerForwarder::CreatedThebesBuffer(ShadowableLayer* aThebes,
        const nsIntRegion& aFrontValidRegion,
        const nsIntRect& aBufferRect,
        const SurfaceDescriptor& aTempFrontBuffer)
{
    OptionalThebesBuffer buffer = null_t();
    if (IsSurfaceDescriptorValid(aTempFrontBuffer)) {
        buffer = ThebesBuffer(aTempFrontBuffer,
                              aBufferRect,
                              nsIntPoint(0, 0));
    }
    mTxn->AddEdit(OpCreateThebesBuffer(NULL, Shadow(aThebes),
                                       buffer,
                                       aFrontValidRegion));
}