I don't know about 2010 or 2012, but there are numerous places you can find precinct-level data for the 2008 presidential election.
For 2012, here's a Romney average map for San Francisco. The Romney average was 13.496%. Red areas are where Romney did better than average; blue areas are where Romney did worse than the average. McCain didn't win a single precinct in 2008. Obama performed slightly better in San Francisco in 2012 over 2008; so, I doubt Romney won a single precinct in San Francisco either.
The Sacramento County website released precinct-level data for the 2012 presidential election but I haven't found a precinct-level map.
Here's some 2008 data:
http://atlas.esri.com/Atlas/VoterAtlas.html?t=1&m=1&x=-121.55&y=38.06&l=9 is a great resource.
https://uselectionatlas.org/FORUM/index.php?topic=88311.75Also, this:
I haven't found any precinct-level maps for 2010.