Use an enum instead, for clarity. Also don't wrap lines if you don't need to.
GLES2Canvas is long gone; this bug is now invalid.