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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (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
Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
index 3dffa865fa78be278de638b8fbc22ff511942c9c..1115eff980241a526161ef20a79d1e140620f29b 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
@@ -37,8 +37,6 @@
#include "platform/fonts/shaping/HarfBuzzShaper.h"
#include "wtf/HashMap.h"
#include "wtf/MathExtras.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
#include <hb-ot.h>
#include <hb.h>
@@ -114,11 +112,11 @@ public:
private:
explicit HbFontCacheEntry(hb_font_t* font)
: m_hbFont(HbFontUniquePtr(font))
- , m_hbFontData(wrapUnique(new HarfBuzzFontData()))
+ , m_hbFontData(adoptPtr(new HarfBuzzFontData()))
{ };
HbFontUniquePtr m_hbFont;
- std::unique_ptr<HarfBuzzFontData> m_hbFontData;
+ OwnPtr<HarfBuzzFontData> m_hbFontData;
};
typedef HashMap<uint64_t, RefPtr<HbFontCacheEntry>, WTF::IntHash<uint64_t>, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> HarfBuzzFontCache;

Powered by Google App Engine
This is Rietveld 408576698