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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h

Issue 2717123003: RemoteFontFaceSource should keep FontCustomPlatformData over FontResource revalidation (Closed)
Patch Set: test description Created 3 years, 10 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/FontCustomPlatformData.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
index 80eb0cf18118fba9920db1ab08d39b91497f36f2..9864c3bd2cdc5b313a86c0a83e6514ca4999a20f 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
+++ b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
@@ -38,8 +38,8 @@
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
+#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
-#include <memory>
class SkTypeface;
@@ -49,14 +49,14 @@ class FontPlatformData;
class SharedBuffer;
class FontVariationSettings;
-class PLATFORM_EXPORT FontCustomPlatformData {
+class PLATFORM_EXPORT FontCustomPlatformData
+ : public RefCounted<FontCustomPlatformData> {
USING_FAST_MALLOC(FontCustomPlatformData);
WTF_MAKE_NONCOPYABLE(FontCustomPlatformData);
public:
- static std::unique_ptr<FontCustomPlatformData> create(
- SharedBuffer*,
- String& otsParseMessage);
+ static PassRefPtr<FontCustomPlatformData> create(SharedBuffer*,
+ String& otsParseMessage);
~FontCustomPlatformData();
FontPlatformData fontPlatformData(

Powered by Google App Engine
This is Rietveld 408576698