| Index: skia/ext/skia_sandbox_support_win.cc
|
| diff --git a/skia/ext/skia_sandbox_support_win.cc b/skia/ext/skia_sandbox_support_win.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..39cc1ccf5427bece52eb1a5a0aaee0f1ab1475ba
|
| --- /dev/null
|
| +++ b/skia/ext/skia_sandbox_support_win.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2006-2008 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 "build/build_config.h"
|
| +
|
| +#if defined (OS_WIN)
|
| +
|
| +#include <windows.h>
|
| +
|
| +#include "skia_sandbox_support_win.h"
|
| +#include "SkFontHost.h"
|
| +#include "SkTypeface_win.h"
|
| +
|
| +// static
|
| +void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
|
| + if (g_skia_sandbox_support) {
|
| + LOGFONT lf;
|
| + SkLOGFONTFromTypeface(&typeface, &lf);
|
| + g_skia_sandbox_support(lf);
|
| + }
|
| +}
|
| +
|
| +#endif // defined (OS_WIN)
|
|
|