improve cull, so we don't create empty segments
improve cull, so we don't create empty segments

BUG=skia:3224

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

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