add a ClassID function to GrBatch

BUG=skia:

Review URL: https://codereview.chromium.org/1352813003
34 files changed