All that matters is the score on your sheet *before* you cast bard song. (Casting bard song and using it to meet the skill req by recasting it won't work.)
Your ranks, charisma modifier, backgrounds, gear and buffs prior to singing will all be taken into account, but yes, eventually the perform req will outstrip the bard song req, probably around perform 35-40 by my reckoning.