Backed out changeset e1bb91f60697 (bug 1129871)

This commit is contained in:
Carsten "Tomcat" Book 2015-02-17 14:32:15 +01:00
parent 3d76e6187e
commit dfaa08abd3
2 changed files with 7 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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) {}
}; };