Example:
He knew riding a motorbike without a helmet was risky. He did it all the same.
It also means: if it makes no difference, if it doesn't bother anybody, if nobody minds.
Example:
If it's all the same to you, I would like to take a nap before dinner because I'm a little tired.