gfx: Inline a few commonly-used methods that were showing up in profiles

r? @mrobinson (or whoever)