Decrement SkCanvas::fDeferredSaveCount in doSave()
Decrement SkCanvas::fDeferredSaveCount in doSave()

We're currently decrementing early in checkForDeferredSave(), but that
means we break the getSaveCount() invariant during willSave() dispatch.

Instead, we can defer to doSave(), until after willSave() is called.
This allows overriders to call getSaveCount().

R=reed@google.com,robertphillips@google.com

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

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