Make memory accounting go through SkStrike
This is in preparation to account for memory at the
allocation sites instead of pluming it out of the method.
Introduce fMemoryIncrease where memory changes can be
accumulated. Add Monitor which facilitates locking and
memory usage account.
Switch back fMemoryUsage to being managed by the cache's
mutex allowing for perfect accounting again.
Change-Id: If7b8c57993e666045457fa5a83beaff0b3301fa1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/633696
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2 files changed