Bug 363861. Part 2.3: Disable subpixel AA in gfxASurfaces with alpha channels by default. r=jrmuizel,a=blocking

This commit is contained in:
Robert O'Callahan 2011-01-03 14:48:08 +13:00
parent 0156f8d63d
commit ad251a9b0c

View File

@ -221,6 +221,9 @@ gfxASurface::Init(cairo_surface_t* surface, PRBool existingSurface)
mFloatingRefs = 0;
} else {
mFloatingRefs = 1;
if (cairo_surface_get_content(surface) != CAIRO_CONTENT_COLOR) {
cairo_surface_set_subpixel_antialiasing(surface, CAIRO_SUBPIXEL_ANTIALIASING_DISABLED);
}
}
}