Fix SkOneShotDiscardablePixelRef to return discardable segment.

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
diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp
index 7d3c342..46229fa 100644
--- a/src/core/SkResourceCache.cpp
+++ b/src/core/SkResourceCache.cpp
@@ -87,6 +87,8 @@
     void onUnlockPixels() override;
     size_t getAllocatedSizeInBytes() const override;
 
+    SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return fDM; }
+
 private:
     SkDiscardableMemory* fDM;
     size_t               fRB;