Base Power = 25 × (Target's Current Speed / User's Current Speed)
Trick room works much like priority. It doesn't affect the speed of the Pokemon, which is what Gyro Ball gets it's power from, but it makes the slower one go first. Since it doesn't affect the speed Gyro Ball will do the same power in or out of Trick Room.
Hope I helped! :)