check for inverted rects before we quick-reject
check for inverted rects before we quick-reject

BUG=skia:

Review URL: https://codereview.chromium.org/908353002

tmpvar/skia.cc,ominux/skia,nvoron23/skia,qrealka/skia-hc,qrealka/skia-hc,tmpvar/skia.cc,qrealka/skia-hc,MarshedOut/android_external_skia,rubenvb/skia,geekboxzone/mmallow_external_skia,invisiblek/android_external_skia,aosp-mirror/platform_external_skia,MarshedOut/android_external_skia,MonkeyZZZZ/platform_external_skia,Igalia/skia,shahrzadmn/skia,AOSPB/external_skia,AOSP-YU/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,todotodoo/skia,UBERMALLOW/external_skia,VRToxin-AOSP/android_external_skia,TeamTwisted/external_skia,scroggo/skia,geekboxzone/mmallow_external_skia,google/skia,w3nd1go/android_external_skia,timduru/platform-external-skia,nfxosp/platform_external_skia,BrokenROM/external_skia,boulzordev/android_external_skia,UBERMALLOW/external_skia,HalCanary/skia-hc,Jichao/skia,TeamExodus/external_skia,todotodoo/skia,AOSP-YU/platform_external_skia,VRToxin-AOSP/android_external_skia,Igalia/skia,qrealka/skia-hc,google/skia,AOSPB/external_skia,boulzordev/android_external_skia,OneRom/external_skia,YUPlayGodDev/platform_external_skia,Jichao/skia,todotodoo/skia,shahrzadmn/skia,HalCanary/skia-hc,timduru/platform-external-skia,scroggo/skia,boulzordev/android_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,UBERMALLOW/external_skia,geekboxzone/mmallow_external_skia,HalCanary/skia-hc,Infinitive-OS/platform_external_skia,todotodoo/skia,spezi77/android_external_skia,ominux/skia,boulzordev/android_external_skia,HalCanary/skia-hc,Igalia/skia,pcwalton/skia,PAC-ROM/android_external_skia,shahrzadmn/skia,samuelig/skia,tmpvar/skia.cc,rubenvb/skia,MinimalOS-AOSP/platform_external_skia,vanish87/skia,nfxosp/platform_external_skia,rubenvb/skia,pcwalton/skia,AOSPB/external_skia,ominux/skia,todotodoo/skia,TeamExodus/external_skia,vanish87/skia,AOSP-YU/platform_external_skia,ominux/skia,Hikari-no-Tenshi/android_external_skia,Igalia/skia,Jichao/skia,shahrzadmn/skia,scroggo/skia,shahrzadmn/skia,geekboxzone/mmallow_external_skia,MarshedOut/android_external_skia,BrokenROM/external_skia,VRToxin-AOSP/android_external_skia,tmpvar/skia.cc,MinimalOS-AOSP/platform_external_skia,tmpvar/skia.cc,MonkeyZZZZ/platform_external_skia,spezi77/android_external_skia,amyvmiwei/skia,Hikari-no-Tenshi/android_external_skia,google/skia,nfxosp/platform_external_skia,PAC-ROM/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,MinimalOS-AOSP/platform_external_skia,OneRom/external_skia,UBERMALLOW/external_skia,vanish87/skia,timduru/platform-external-skia,noselhq/skia,geekboxzone/mmallow_external_skia,UBERMALLOW/external_skia,MinimalOS-AOSP/platform_external_skia,scroggo/skia,TeamTwisted/external_skia,google/skia,MonkeyZZZZ/platform_external_skia,invisiblek/android_external_skia,YUPlayGodDev/platform_external_skia,Infinitive-OS/platform_external_skia,scroggo/skia,amyvmiwei/skia,amyvmiwei/skia,w3nd1go/android_external_skia,YUPlayGodDev/platform_external_skia,Hikari-no-Tenshi/android_external_skia,AOSPB/external_skia,Hikari-no-Tenshi/android_external_skia,pcwalton/skia,MinimalOS-AOSP/platform_external_skia,nvoron23/skia,amyvmiwei/skia,Infinitive-OS/platform_external_skia,timduru/platform-external-skia,TeamExodus/external_skia,MarshedOut/android_external_skia,MonkeyZZZZ/platform_external_skia,timduru/platform-external-skia,MinimalOS-AOSP/platform_external_skia,OneRom/external_skia,w3nd1go/android_external_skia,amyvmiwei/skia,UBERMALLOW/external_skia,UBERMALLOW/external_skia,qrealka/skia-hc,AOSPB/external_skia,MonkeyZZZZ/platform_external_skia,MarshedOut/android_external_skia,noselhq/skia,VRToxin-AOSP/android_external_skia,nfxosp/platform_external_skia,amyvmiwei/skia,noselhq/skia,BrokenROM/external_skia,YUPlayGodDev/platform_external_skia,Igalia/skia,aosp-mirror/platform_external_skia,google/skia,geekboxzone/mmallow_external_skia,nfxosp/platform_external_skia,VRToxin-AOSP/android_external_skia,Jichao/skia,noselhq/skia,OneRom/external_skia,shahrzadmn/skia,AOSP-YU/platform_external_skia,MonkeyZZZZ/platform_external_skia,nfxosp/platform_external_skia,qrealka/skia-hc,nvoron23/skia,PAC-ROM/android_external_skia,todotodoo/skia,YUPlayGodDev/platform_external_skia,TeamExodus/external_skia,BrokenROM/external_skia,AOSPB/external_skia,invisiblek/android_external_skia,nvoron23/skia,google/skia,Jichao/skia,timduru/platform-external-skia,YUPlayGodDev/platform_external_skia,spezi77/android_external_skia,Infinitive-OS/platform_external_skia,shahrzadmn/skia,spezi77/android_external_skia,invisiblek/android_external_skia,google/skia,Infinitive-OS/platform_external_skia,aosp-mirror/platform_external_skia,vanish87/skia,geekboxzone/mmallow_external_skia,ominux/skia,TeamTwisted/external_skia,rubenvb/skia,invisiblek/android_external_skia,samuelig/skia,HalCanary/skia-hc,nvoron23/skia,TeamTwisted/external_skia,ominux/skia,TeamTwisted/external_skia,tmpvar/skia.cc,Igalia/skia,nfxosp/platform_external_skia,Jichao/skia,pcwalton/skia,OneRom/external_skia,AOSP-YU/platform_external_skia,scroggo/skia,nvoron23/skia,aosp-mirror/platform_external_skia,TeamExodus/external_skia,geekboxzone/mmallow_external_skia,noselhq/skia,vanish87/skia,vanish87/skia,tmpvar/skia.cc,MonkeyZZZZ/platform_external_skia,UBERMALLOW/external_skia,samuelig/skia,scroggo/skia,amyvmiwei/skia,PAC-ROM/android_external_skia,w3nd1go/android_external_skia,PAC-ROM/android_external_skia,pcwalton/skia,VRToxin-AOSP/android_external_skia,AOSP-YU/platform_external_skia,todotodoo/skia,w3nd1go/android_external_skia,noselhq/skia,ominux/skia,pcwalton/skia,Infinitive-OS/platform_external_skia,samuelig/skia,Jichao/skia,AOSPB/external_skia,MonkeyZZZZ/platform_external_skia,google/skia,spezi77/android_external_skia,HalCanary/skia-hc,AOSP-YU/platform_external_skia,MarshedOut/android_external_skia,pcwalton/skia,TeamExodus/external_skia,MinimalOS-AOSP/platform_external_skia,shahrzadmn/skia,AOSPB/external_skia,invisiblek/android_external_skia,MinimalOS-AOSP/platform_external_skia,ominux/skia,BrokenROM/external_skia,amyvmiwei/skia,aosp-mirror/platform_external_skia,nfxosp/platform_external_skia,spezi77/android_external_skia,invisiblek/android_external_skia,Jichao/skia,PAC-ROM/android_external_skia,OneRom/external_skia,TeamTwisted/external_skia,OneRom/external_skia,Jichao/skia,scroggo/skia,Hikari-no-Tenshi/android_external_skia,UBERMALLOW/external_skia,BrokenROM/external_skia,YUPlayGodDev/platform_external_skia,TeamExodus/external_skia,TeamTwisted/external_skia,HalCanary/skia-hc,samuelig/skia,invisiblek/android_external_skia,VRToxin-AOSP/android_external_skia,TeamExodus/external_skia,OneRom/external_skia,MinimalOS-AOSP/platform_external_skia,tmpvar/skia.cc,AOSP-YU/platform_external_skia,PAC-ROM/android_external_skia,boulzordev/android_external_skia,rubenvb/skia,MarshedOut/android_external_skia,samuelig/skia,VRToxin-AOSP/android_external_skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,w3nd1go/android_external_skia,TeamTwisted/external_skia,google/skia,MonkeyZZZZ/platform_external_skia,samuelig/skia,boulzordev/android_external_skia,timduru/platform-external-skia,HalCanary/skia-hc,nvoron23/skia,PAC-ROM/android_external_skia,samuelig/skia,pcwalton/skia,pcwalton/skia,rubenvb/skia,w3nd1go/android_external_skia,vanish87/skia,YUPlayGodDev/platform_external_skia,aosp-mirror/platform_external_skia,VRToxin-AOSP/android_external_skia,noselhq/skia,MarshedOut/android_external_skia,boulzordev/android_external_skia,Infinitive-OS/platform_external_skia,Igalia/skia,YUPlayGodDev/platform_external_skia,TeamTwisted/external_skia,vanish87/skia,nvoron23/skia,vanish87/skia,todotodoo/skia,Hikari-no-Tenshi/android_external_skia,TeamExodus/external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,Infinitive-OS/platform_external_skia,noselhq/skia,noselhq/skia,MarshedOut/android_external_skia,rubenvb/skia,geekboxzone/mmallow_external_skia,nvoron23/skia,ominux/skia,qrealka/skia-hc,AOSPB/external_skia,BrokenROM/external_skia,nfxosp/platform_external_skia,Infinitive-OS/platform_external_skia,tmpvar/skia.cc,AOSP-YU/platform_external_skia,qrealka/skia-hc,shahrzadmn/skia,PAC-ROM/android_external_skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,rubenvb/skia,todotodoo/skia,BrokenROM/external_skia,aosp-mirror/platform_external_skia,OneRom/external_skia,Igalia/skia