зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1219230
- Use the valid region for determining buffer size instead of the visible region. r=mstange
This commit is contained in:
Родитель
3f9b5a64be
Коммит
caa70d1713
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче