Bug 790673. Add BorrowedCGContext. r=bas

This can be used to safely get at the underlying CGContext.