PMC: internal copy of GrUtils for unit test