Bug 1031267 - Fix system cairo builds after bug 1027763. r=jwatt,a=kwierso

This commit is contained in:
Mike Hommey 2014-07-02 09:15:51 +09:00
parent 39270b3677
commit 3ebd9bcf37

View File

@ -452,9 +452,13 @@ DrawTargetCairo::GetType() const
case CAIRO_SURFACE_TYPE_RECORDING:
case CAIRO_SURFACE_TYPE_DRM:
case CAIRO_SURFACE_TYPE_SUBSURFACE:
#ifdef CAIRO_HAS_D2D_SURFACE
case CAIRO_SURFACE_TYPE_D2D:
#endif
case CAIRO_SURFACE_TYPE_TEE: // included to silence warning about unhandled enum value
return DrawTargetType::SOFTWARE_RASTER;
default:
MOZ_CRASH("Unsupported cairo surface type");
}
}
MOZ_ASSERT(false, "Could not determine DrawTargetType for DrawTargetCairo");