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

Side by Side Diff: src/ports/SkFontHost_win.cpp

Issue 23058002: allow both GDI and DW fontmgrs at the same time (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkAdvancedTypefaceMetrics.h" 9 #include "SkAdvancedTypefaceMetrics.h"
10 #include "SkBase64.h" 10 #include "SkBase64.h"
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path)); 2364 SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path));
2365 return stream.get() ? CreateTypefaceFromStream(stream) : NULL; 2365 return stream.get() ? CreateTypefaceFromStream(stream) : NULL;
2366 } 2366 }
2367 2367
2368 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) { 2368 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) {
2369 return create_from_stream(stream); 2369 return create_from_stream(stream);
2370 } 2370 }
2371 2371
2372 #endif 2372 #endif
2373 2373
2374 SkFontMgr* SkFontMgr::Factory() { 2374 extern SkFontMgr* SkFontMgr_New_GDI();
2375 extern SkFontMgr* SkFontMgr_New_DirectWrite();
bungeman-skia 2013/08/14 15:24:11 I don't think this is needed anymore?
reed1 2013/08/14 15:27:47 Done.
2376
2377 SkFontMgr* SkFontMgr_New_GDI() {
2375 return SkNEW(SkFontMgrGDI); 2378 return SkNEW(SkFontMgrGDI);
2376 } 2379 }
OLDNEW
« gyp/ports.gyp ('K') | « gyp/ports.gyp ('k') | src/ports/SkFontHost_win_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698