When the chips are down

Where does the phrase "when the chips are down" derive? Does it mean that you dropeed your fish-and-chips?

No. It comes from poker.