Bug 1274692 - Remove CG limitation since the backend is skia. r=mstange

This commit is contained in:
Ethan Lin 2016-10-20 02:14:00 +02:00
Родитель fa1ec91634
Коммит 8a8904b1c0
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -264,15 +264,6 @@ Factory::CheckSurfaceSize(const IntSize &sz,
return false;
}
#if defined(XP_MACOSX)
// CoreGraphics is limited to images < 32K in *height*,
// so clamp all surfaces on the Mac to that height
if (sz.height > SHRT_MAX) {
gfxDebug() << "Surface size too large (exceeds CoreGraphics limit)!";
return false;
}
#endif
// assuming 4 bytes per pixel, make sure the allocation size
// doesn't overflow a int32_t either
CheckedInt<int32_t> stride = GetAlignedStride<16>(sz.width, 4);