Objects should be unrefed instead of deleted
Objects should be unrefed instead of deleted

When an error occurs reading a flattenable object, it should be unrefed instead of deleted because, in the case of SkXferMode, for example, we'd actually be deleting a cached object kept in a static array.

BUG=428789

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

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