cleanup and optimize rect intersect routines

BUG=skia:

Review URL: https://codereview.chromium.org/640723004
5 files changed