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

Unified Diff: src/core/SkPixmap.cpp

Issue 1787883002: Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment Created 4 years, 9 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
Index: src/core/SkPixmap.cpp
diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp
index d7c4cffb7ecea0d6d25c3cec50b804f83e62c7f9..229c1d3943831464fc4efec2014834e486b065a3 100644
--- a/src/core/SkPixmap.cpp
+++ b/src/core/SkPixmap.cpp
@@ -329,3 +329,8 @@ const SkData* SkAutoPixmapStorage::detachPixelsAsData() {
return data;
}
+
+void SkAutoPixmapStorage::release() {
+ fStorage = nullptr;
+ this->INHERITED::reset();
+}

Powered by Google App Engine
This is Rietveld 408576698