Fix layer cache memory leak
Fix layer cache memory leak

The issue was that, with caching disabled, the layer cache code was removing layers outside of a purge (i.e., in unlock) but not correctly cleaning up the GrPictureInfo objects (as is done in purgePlot).

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

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