Photons and the speed of light

Not exactly. The speed of light slows trying to leave a gravity well; it speeds up falling into a gravity well. The speed of light is constant in an inertial reference frame. In order to have an inertial reference frame where you have gravity, your frame must be free-falling.