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

Unified Diff: content/test/layouttest_support.cc

Issue 2618443002: Remove use of legacy SkFontMgr factories. (Closed)
Patch Set: Address comments. Created 3 years, 11 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: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index fefd00efdf062bb27b479e32d044f8641eb3f324..2b1c4ec077072ed007e8ad4f69a0cbb34850d546 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -60,6 +60,7 @@
#elif defined(OS_WIN)
#include "content/child/font_warmup_win.h"
#include "third_party/WebKit/public/web/win/WebFontRendering.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/ports/SkFontMgr.h"
#include "third_party/skia/include/ports/SkTypeface_win.h"
#include "ui/gfx/win/direct_write.h"
@@ -435,7 +436,7 @@ void EnableRendererLayoutTestMode() {
base::MakeUnique<LayoutTestDependenciesImpl>());
#if defined(OS_WIN)
- RegisterSideloadedTypefaces(SkFontMgr_New_DirectWrite());
+ RegisterSideloadedTypefaces(SkFontMgr_New_DirectWrite().get());
#endif
}

Powered by Google App Engine
This is Rietveld 408576698