A police officer in California has been charged with felony manslaughter in the shooting of a black man in a Walmart.