Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "build/build_config.h" | |
| 6 | |
| 7 #if defined (OS_WIN) | |
|
vandebo (ex-Chrome)
2011/11/22 18:23:41
You don't need this anymore since the file is _win
arthurhsu
2011/11/22 20:39:14
Done.
| |
| 8 | |
| 9 #include <windows.h> | |
| 10 | |
| 11 #include "SkPreConfig.h" | |
| 12 #include "skia_sandbox_support_win.h" | |
| 13 #include "SkFontHost.h" | |
| 14 #include "SkTypeface_win.h" | |
| 15 | |
| 16 SK_API void SetSkiaEnsureTypefaceAccessible(SkiaEnsureTypefaceAccessible func) { | |
| 17 g_skia_ensure_typeface_accessible = func; | |
|
vandebo (ex-Chrome)
2011/11/22 18:23:41
dcheck that the static is currently NULL?
arthurhsu
2011/11/22 20:39:14
It can be non-NULL in component builds.
| |
| 18 } | |
| 19 | |
| 20 // static | |
| 21 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { | |
| 22 if (g_skia_ensure_typeface_accessible) { | |
| 23 LOGFONT lf; | |
| 24 SkLOGFONTFromTypeface(&typeface, &lf); | |
| 25 g_skia_ensure_typeface_accessible(lf); | |
| 26 } | |
| 27 } | |
| 28 | |
| 29 #endif // defined (OS_WIN) | |
| OLD | NEW |