SURPRISE, Ariz. (AP) Two of the three hits Matt Cain allowed left the park Thursday night. In the end, it didn't matter.
Cain allowed two runs in seven innings and the San Francisco Giants rallied to beat Texas 6-2, snapping the Rangers' three-game winning streak.
''I threw some good sliders and threw some bad ones,'' said Cain, who has allowed four earned runs in 20 2/3 innings for a 1.74 ERA. ''I think I need to think about what I need to do to throw more good ones.''
Mike Napoli and Mitch Moreland hit consecutive home runs to start the second inning for the Rangers, but Cain didn't allow another hit until Josh Hamilton doubled to lead off the seventh.
''After that, he really settled down and pitched great,'' Giants manager Bruce Bochy said. ''It's good for him to have a game like this as we get close. Matt's ready.''
Cain retired the first three batters he faced, and then 17 of his final 19.
Cain will be the Giants' third starter behind Tim Lincecum and Madison Bumgarner.
''He's not a No. 3 starter,'' Bochy said. ''That's just the way things fell in our rotation. He's one of the better pitchers in the game.''
Matt Harrison was equally as effective for the Rangers, allowing a run on six hits in six innings. He struck out seven and walked one.
Harrison has allowed only 11 hits and two walks in 16 innings across four starts this spring.
''I think I've been really consistent in terms of pounding the strike zone and getting ahead of guys,'' Harrison said. ''I've got the attitude that I'm coming right at you and being aggressive with every pitch I have. It's paying off.''
Yoshinori Tateyama came in for Harrison and promptly surrendered three straight singles to begin a three-run, four-hit Giants rally.
Joaquin Arias, a one-time Rangers farmhand, homered to lead off the ninth for San Francisco.
Notes: Cain and Harrison combined to complete the first six innings in 1:25. ... Napoli has hit all three of his home runs over the past three days. ... Giants RHP Brian Wilson threw 20 pitches in a minor-league game against Triple-A Reno earlier Thursday and is expected to throw again Friday. Wilson has been working through soreness in his arm for the past week. ... Rangers RHP Yu Darvish downplayed the possibility of his facing Ichiro Suzuki when he makes his major league debut April 9 against the Seattle Mariners. ''Wherever and whenever I'm told to pitch, I'll just do my best,'' he said through an interpreter. ''That's all I'm thinking about now.'' Darvish will start for the Rangers on Friday night against Colorado. ... LHP Barry Zito, who is 2-1 with a 6.61 ERA this spring, starts for San Francisco on Friday against San Diego. ... Texas RHP Mark Lowe started in a minor-league game earlier Thursday and pitched one inning, allowing three runs on three hits with a walk.