mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset e1bb91f60697 (bug 1129871)
This commit is contained in:
parent
3d76e6187e
commit
dfaa08abd3
@ -528,7 +528,7 @@ TiledLayerBuffer<Derived, Tile>::Update(const nsIntRegion& newValidRegion,
|
|||||||
static_cast<unsigned>(index) < newRetainedTiles.Length(),
|
static_cast<unsigned>(index) < newRetainedTiles.Length(),
|
||||||
"index out of range");
|
"index out of range");
|
||||||
|
|
||||||
Tile& newTile = newRetainedTiles[index];
|
Tile newTile = newRetainedTiles[index];
|
||||||
|
|
||||||
// Try to reuse a tile from the old retained tiles that had no partially
|
// Try to reuse a tile from the old retained tiles that had no partially
|
||||||
// valid content.
|
// valid content.
|
||||||
@ -550,6 +550,8 @@ TiledLayerBuffer<Derived, Tile>::Update(const nsIntRegion& newValidRegion,
|
|||||||
#ifdef GFX_TILEDLAYER_PREF_WARNINGS
|
#ifdef GFX_TILEDLAYER_PREF_WARNINGS
|
||||||
printf_stderr("Store Validate tile %i, %i -> %i\n", tileStartX, tileStartY, index);
|
printf_stderr("Store Validate tile %i, %i -> %i\n", tileStartX, tileStartY, index);
|
||||||
#endif
|
#endif
|
||||||
|
newRetainedTiles[index] = newTile;
|
||||||
|
|
||||||
y += height;
|
y += height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,11 +36,11 @@ public:
|
|||||||
return TestTiledLayerTile(-1);
|
return TestTiledLayerTile(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValidateTile(TestTiledLayerTile& aTile, const nsIntPoint& aTileOrigin, const nsIntRegion& aDirtyRect) {
|
TestTiledLayerTile ValidateTile(TestTiledLayerTile aTile, const nsIntPoint& aTileOrigin, const nsIntRegion& aDirtyRect) {
|
||||||
aTile = TestTiledLayerTile();
|
return TestTiledLayerTile();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReleaseTile(TestTiledLayerTile& aTile)
|
void ReleaseTile(TestTiledLayerTile aTile)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
Update(aNewValidRegion, aPaintRegion);
|
Update(aNewValidRegion, aPaintRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnlockTile(TestTiledLayerTile& aTile) {}
|
void UnlockTile(TestTiledLayerTile aTile) {}
|
||||||
void PostValidate(const nsIntRegion& aPaintRegion) {}
|
void PostValidate(const nsIntRegion& aPaintRegion) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user