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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h

Issue 2043613002: Remove the use of OwnedPtrDeleter in HarfBuzzFace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
index 30cd6c18e1e0f1f4435fc3defa51f7e5b1360ee9..1d915f7ab74fb2fc494c89569ad2c5c2c0853a81 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
@@ -76,28 +76,4 @@ private:
} // namespace blink
-namespace WTF {
-
-template<typename T> struct OwnedPtrDeleter;
-template<> struct OwnedPtrDeleter<hb_font_t> {
- STATIC_ONLY(OwnedPtrDeleter);
- static void deletePtr(hb_font_t* font)
- {
- if (font)
- hb_font_destroy(font);
- }
-};
-
-template<typename T> struct OwnedPtrDeleter;
-template<> struct OwnedPtrDeleter<hb_face_t> {
- STATIC_ONLY(OwnedPtrDeleter);
- static void deletePtr(hb_face_t* face)
- {
- if (face)
- hb_face_destroy(face);
- }
-};
-
-} // namespace WTF
-
#endif // HarfBuzzFace_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698