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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Self-review. Created 4 years, 4 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/TextBlob.h
diff --git a/third_party/WebKit/Source/platform/fonts/TextBlob.h b/third_party/WebKit/Source/platform/fonts/TextBlob.h
index d032fdccb02dfa2c3f8e64f4986c11ca1898e568..32afc5e72b9de32fae9f87ae1fa7b2b6b3774874 100644
--- a/third_party/WebKit/Source/platform/fonts/TextBlob.h
+++ b/third_party/WebKit/Source/platform/fonts/TextBlob.h
@@ -6,15 +6,13 @@
#define TextBlob_h
#include "third_party/skia/include/core/SkTextBlob.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
namespace blink {
// Holds a (mutable) reference to an immutable SkTextBlob.
// Typedefs are used only to insulate core/ from Skia type names.
-typedef RefPtr<const SkTextBlob> TextBlobPtr;
-typedef PassRefPtr<const SkTextBlob> PassTextBlobPtr;
+typedef sk_sp<const SkTextBlob> TextBlobPtr;
+typedef sk_sp<const SkTextBlob> PassTextBlobPtr;
f(malita) 2016/09/01 03:55:38 Heh, this is now painfully obsolete. Can you add
Łukasz Anforowicz 2016/09/01 20:50:58 Done.
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698