Shrink the surface size to speed up painting

This commit is contained in:
Patrick Walton 2012-02-06 15:25:18 -08:00
parent 0e90b797ea
commit cae681557e

View File

@ -1257,9 +1257,7 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
}
nsRefPtr<gfxImageSurface> targetSurface =
new gfxImageSurface(bits2,
gfxIntSize(gAndroidBounds.width, gAndroidBounds.height),
gAndroidBounds.width * 2,
new gfxImageSurface(bits2, gfxIntSize(32, 32), 32 * 2,
gfxASurface::ImageFormatRGB16_565);
#if 0