Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: src/core/SkResourceCache.cpp

Issue 1304083006: Fix SkOneShotDiscardablePixelRef to return discardable segment. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkResourceCache.cpp
diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp
index 7d3c3420dba868c7ddf3eacd8d110cf1fb3a9774..46229fa5bdd987a77a05dff9e8b1964c345c57f9 100644
--- a/src/core/SkResourceCache.cpp
+++ b/src/core/SkResourceCache.cpp
@@ -87,6 +87,8 @@ protected:
void onUnlockPixels() override;
size_t getAllocatedSizeInBytes() const override;
+ SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return fDM; }
+
private:
SkDiscardableMemory* fDM;
size_t fRB;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698