Bug 1219230 - Use the valid region for determining buffer size instead of the visible region. r=mstange

This commit is contained in:
Matt Woodrow 2015-11-17 11:36:38 +13:00
Родитель 3f9b5a64be
Коммит caa70d1713
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -120,9 +120,9 @@ ClientSingleTiledLayerBuffer::PaintThebes(const nsIntRegion& aNewValidRegion,
LayerManager::DrawPaintedLayerCallback aCallback,
void* aCallbackData)
{
// Compare layer visible region size to current backbuffer size, discard if not matching.
IntSize size = mPaintedLayer->GetVisibleRegion().GetBounds().Size();
IntPoint origin = mPaintedLayer->GetVisibleRegion().GetBounds().TopLeft();
// Compare layer valid region size to current backbuffer size, discard if not matching.
IntSize size = aNewValidRegion.GetBounds().Size();
IntPoint origin = aNewValidRegion.GetBounds().TopLeft();
nsIntRegion paintRegion = aPaintRegion;
if (mSize != size ||
mTilingOrigin != origin) {