The SkOneShotDiscardablePixelRef was not overriding
diagnostic_only_getDiscardable method of SkPixelRef. This caused the
memory to be acocunted under malloc instead of discardable and caused
wrong accounting.
BUG=528295
Review URL: https://codereview.chromium.org/
1304083006
void onUnlockPixels() override;
size_t getAllocatedSizeInBytes() const override;
+ SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return fDM; }
+
private:
SkDiscardableMemory* fDM;
size_t fRB;