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

Unified Diff: skia/ext/fontmgr_default_android.cc

Issue 2644103003: Allow multiple calls to SetDefaultSkiaFactory on Windows. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | skia/ext/fontmgr_default_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/fontmgr_default_android.cc
diff --git a/skia/ext/fontmgr_default_android.cc b/skia/ext/fontmgr_default_android.cc
index 1bbd9d1d0ec2188c4d0f72a91a89f1567f1c8133..7a6ad4447702e3f81e87916350a3aa809125a3bc 100644
--- a/skia/ext/fontmgr_default_android.cc
+++ b/skia/ext/fontmgr_default_android.cc
@@ -13,6 +13,7 @@ SkFontMgr* g_default_fontmgr;
} // namespace
SK_API void SetDefaultSkiaFactory(sk_sp<SkFontMgr> fontmgr) {
+ SkASSERT(g_default_fontmgr == nullptr);
g_default_fontmgr = fontmgr.release();
}
« no previous file with comments | « no previous file | skia/ext/fontmgr_default_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698