Bug 1110229 - Always paint the full low-res tile for performance and correctness. r=nical

This commit is contained in:
Benoit Girard 2015-01-08 11:24:15 -05:00
parent 2f999e45d9
commit ed5fb37df8

View File

@ -1489,6 +1489,11 @@ ClientTiledLayerBuffer::ComputeProgressiveUpdateRegion(const nsIntRegion& aInval
while (true) {
aRegionToPaint.And(aInvalidRegion, tileBounds);
if (!aRegionToPaint.IsEmpty()) {
if (mResolution != CSSToParentLayerScale(1)) {
// Paint the entire tile for low-res. This is aimed to fixing low-res resampling
// and to avoid doing costly region accurate painting for a small area.
aRegionToPaint = tileBounds;
}
break;
}
if (Abs(scrollDiffY) >= Abs(scrollDiffX)) {