| Index: skia/ext/SkFontHost_sandbox_win.cpp
|
| diff --git a/skia/ext/SkFontHost_sandbox_win.cpp b/skia/ext/SkFontHost_sandbox_win.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1d76fe4a07ae377e61b9c08507080df9a5b80a6b
|
| --- /dev/null
|
| +++ b/skia/ext/SkFontHost_sandbox_win.cpp
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "SkFontHost.h"
|
| +#include "SkTypeface.h"
|
| +
|
| +#ifdef WIN32
|
| +
|
| +#include "SkFontHost_sandbox_win.h"
|
| +
|
| +#include <windows.h>
|
| +
|
| +#include "SkTypeface_win.h"
|
| +
|
| +// static
|
| +void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
|
| + if (g_SandboxSupport) {
|
| + LOGFONT lf;
|
| + SkLOGFONTFromTypeface(&typeface, &lf);
|
| + g_SandboxSupport->EnsureFontLoad(lf);
|
| + }
|
| +}
|
| +
|
| +#else
|
| +
|
| +void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
|
| + // No-op for all other platforms
|
| +}
|
| +
|
| +#endif // WIN32
|
|
|