Barcelona turned in a classy performance as they rounded off their pre-season programme with a dominant 3-0 victory over Roma in the 50th Trofeo Joan Gamper.