Merge GraphicsContext::drawPrimitives and GraphicsContext::drawIndexedPrimitives