1. A method comprising: determining a depth coding rate that results from coding one or more portions of a depth map using a particular coding mode, wherein the depth map is for a particular view and the depth map can be used to render video for a different view than the particular view to produce a rendered video; determining a depth map distortion that results from coding the one or more portions of the depth map using the particular coding mode; determining a value of distortion for the rendered video based on the depth map distortion and based on a particular relationship between the depth map distortion and values of distortion for the rendered video; determining whether to use the particular coding mode to code the one or more portions of the depth map based on the value of distortion for the rendered video and the depth coding rate; and coding the one or more portions of the depth map using the particular coding mode.