A raging California wildfire nearly tripled in size Friday as it threatened 4,000 homes, although firefighters said they had gained more control over it.