Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: content/child/font_warmup_win.cc

Issue 1642213002: Move font_warmup_win, fix webrtc dep. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/font_warmup_win.h ('k') | content/child/font_warmup_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/font_warmup_win.h ('k') | content/child/font_warmup_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698