Bug 1117338 - Blow up if we can't convert a cairo format to a gfx one r=milan

This commit is contained in:
James Willcox 2015-03-09 08:34:45 -05:00
parent 47ca1c6198
commit b0021dc8e1

View File

@ -229,8 +229,7 @@ CairoFormatToGfxFormat(cairo_format_t format)
case CAIRO_FORMAT_RGB16_565:
return SurfaceFormat::R5G6B5;
default:
gfxWarning() << "Unknown cairo format";
MOZ_ASSERT(false, "Unknown cairo format");
gfxCriticalError() << "Unknown cairo format " << format;
return SurfaceFormat::UNKNOWN;
}
}