Alex Cobb labored through 3.1 innings of work, but the SF Giants still came out on top against the reigning NL champs.