Swash plate compressor with fixed or variable capacity