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

Unified Diff: include/private/SkTemplates.h

Issue 1811483004: Add back SkAutoTDelete::detach() for Android temporarily. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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: include/private/SkTemplates.h
diff --git a/include/private/SkTemplates.h b/include/private/SkTemplates.h
index 526c307558c6a98db262d54ef37bc5548af69f14..d83ffc8e27d4f7c3f30ae07dd3ac0a07b09d47b3 100644
--- a/include/private/SkTemplates.h
+++ b/include/private/SkTemplates.h
@@ -98,6 +98,11 @@ public:
operator T*() const { return this->get(); }
void free() { this->reset(nullptr); }
+#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
+ // Need to update graphics/BitmapRegionDecoder.cpp.
scroggo 2016/03/17 12:37:47 Looks like we also need to update Shader.cpp
+ T* detach() { return this->release(); }
+#endif
+
// See SkAutoTUnref for why we do this.
explicit operator bool() const { return this->get() != nullptr; }
};
« 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