mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
bug=102321 Speed up the background tiling r=kmcclusky a=attinasi. Forgot to put in one small
change. TileMin goes from 4 to 8
This commit is contained in:
parent
23724ed2c8
commit
e495ddbead
@ -804,9 +804,9 @@ NS_IMETHODIMP nsImageWin::DrawTile(nsIRenderingContext &aContext,
|
||||
numTiles = (aDestRect.width*aDestRect.height)/(ScaledTileWidth*ScaledTileHeight);
|
||||
|
||||
// if alpha is less than 8,not printing, and not 8 bit palette image then we can do
|
||||
// a progressive tile and the tile is at least 4 times smaller than the area to update
|
||||
// a progressive tile and the tile is at least 8 times smaller than the area to update
|
||||
if ( (mAlphaDepth < 8) && (canRaster!=DT_RASPRINTER) && (256!=mNumPaletteColors) &&
|
||||
(numTiles > 3) ) {
|
||||
(numTiles > 7) ) {
|
||||
result = ProgressiveDoubleBlit(aSurface,aDestRect.width, aDestRect.height,
|
||||
ScaledTileWidth,ScaledTileHeight, x0,y0,x1,y1);
|
||||
if (result ) {
|
||||
|
Loading…
Reference in New Issue
Block a user