| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/common/font_warmup_win.h" | 5 #include "content/child/font_warmup_win.h" |
| 6 | 6 |
| 7 #include <dwrite.h> | 7 #include <dwrite.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 // down for the CC HUD code, so use the same one here. Note that we don't use | 520 // down for the CC HUD code, so use the same one here. Note that we don't use |
| 521 // a monospace as would be nice in an attempt to avoid a small startup time | 521 // a monospace as would be nice in an attempt to avoid a small startup time |
| 522 // regression, see http://crbug.com/463613. | 522 // regression, see http://crbug.com/463613. |
| 523 skia::RefPtr<SkTypeface> hud_typeface = skia::AdoptRef( | 523 skia::RefPtr<SkTypeface> hud_typeface = skia::AdoptRef( |
| 524 GetPreSandboxWarmupFontMgr()->legacyCreateTypeface("Times New Roman", 0)); | 524 GetPreSandboxWarmupFontMgr()->legacyCreateTypeface("Times New Roman", 0)); |
| 525 DoPreSandboxWarmupForTypeface(hud_typeface.get()); | 525 DoPreSandboxWarmupForTypeface(hud_typeface.get()); |
| 526 gfx::SetHudTypeface(hud_typeface); | 526 gfx::SetHudTypeface(hud_typeface); |
| 527 } | 527 } |
| 528 | 528 |
| 529 } // namespace content | 529 } // namespace content |
| OLD | NEW |