| Index: content/renderer/renderer_main_platform_delegate_win.cc
|
| ===================================================================
|
| --- content/renderer/renderer_main_platform_delegate_win.cc (revision 168878)
|
| +++ content/renderer/renderer_main_platform_delegate_win.cc (working copy)
|
| @@ -9,12 +9,15 @@
|
| #include "base/command_line.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/string16.h"
|
| #include "base/win/win_util.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/injection_test_win.h"
|
| #include "content/public/renderer/render_thread.h"
|
| +#include "content/renderer/render_thread_impl.h"
|
| #include "sandbox/win/src/sandbox.h"
|
| #include "skia/ext/skia_sandbox_support_win.h"
|
| +#include "skia/ext/vector_platform_device_emf_win.h"
|
| #include "unicode/timezone.h"
|
|
|
| namespace content {
|
| @@ -28,6 +31,17 @@
|
| }
|
| }
|
|
|
| +void SkiaPreCacheFontCharacters(const LOGFONT& logfont,
|
| + const wchar_t* text,
|
| + unsigned int text_length) {
|
| + content::RenderThreadImpl* render_thread_impl =
|
| + content::RenderThreadImpl::current();
|
| + if (render_thread_impl) {
|
| + render_thread_impl->PreCacheFontCharacters(logfont,
|
| + string16(text, text_length));
|
| + }
|
| +}
|
| +
|
| void __cdecl ForceCrashOnSigAbort(int) {
|
| *((int*)0) = 0x1337;
|
| }
|
| @@ -78,6 +92,8 @@
|
| // is disabled, we don't have to make this dummy call.
|
| scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
|
| SetSkiaEnsureTypefaceAccessible(SkiaPreCacheFont);
|
| + skia::SetSkiaEnsureTypefaceCharactersAccessible(
|
| + SkiaPreCacheFontCharacters);
|
| }
|
| }
|
|
|
|
|