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

Unified Diff: gm/fontmgr.cpp

Issue 218833005: Pass the IDWriteFactory instead of relying on a global creator. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 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 | include/ports/SkTypeface_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/fontmgr.cpp
===================================================================
--- gm/fontmgr.cpp (revision 13991)
+++ gm/fontmgr.cpp (working copy)
@@ -26,13 +26,13 @@
class FontMgrGM : public skiagm::GM {
public:
- FontMgrGM(SkFontMgr* (*factory)() = NULL) {
+ FontMgrGM(SkFontMgr* fontMgr = NULL) {
SkGraphics::SetFontCacheLimit(16 * 1024 * 1024);
fName.set("fontmgr_iter");
- if (factory) {
+ if (fontMgr) {
fName.append("_factory");
- fFM.reset(factory());
+ fFM.reset(fontMgr);
} else {
fFM.reset(SkFontMgr::RefDefault());
}
@@ -195,5 +195,5 @@
DEF_GM( return SkNEW(FontMgrMatchGM); )
#ifdef SK_BUILD_FOR_WIN
- DEF_GM( return SkNEW_ARGS(FontMgrGM, (SkFontMgr_New_DirectWrite)); )
+ DEF_GM( return SkNEW_ARGS(FontMgrGM, (SkFontMgr_New_DirectWrite())); )
#endif
« no previous file with comments | « no previous file | include/ports/SkTypeface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698