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

Side by Side Diff: content/public/renderer/render_font_warmup_win.h

Issue 354023007: Use DirectWrite to populate list of avalible fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 struct IDWriteFactory;
10 class SkFontMgr; 11 class SkFontMgr;
11 class SkTypeface; 12 class SkTypeface;
12 13
13 namespace content { 14 namespace content {
14 15
16 // Gets the system direct write factory on systems with DirectWrite support.
17 CONTENT_EXPORT void CreateDirectWriteFactory(IDWriteFactory**);
18
15 // Make necessary calls to cache the data for a given font, used before 19 // Make necessary calls to cache the data for a given font, used before
16 // sandbox lockdown. 20 // sandbox lockdown.
17 CONTENT_EXPORT void DoPreSandboxWarmupForTypeface(SkTypeface* typeface); 21 CONTENT_EXPORT void DoPreSandboxWarmupForTypeface(SkTypeface* typeface);
18 22
19 // Get the shared font manager used during pre-sandbox warmup for DirectWrite 23 // Get the shared font manager used during pre-sandbox warmup for DirectWrite
20 // fonts. 24 // fonts.
21 CONTENT_EXPORT SkFontMgr* GetPreSandboxWarmupFontMgr(); 25 CONTENT_EXPORT SkFontMgr* GetPreSandboxWarmupFontMgr();
22 26
23 } // namespace content 27 } // namespace content
24 28
25 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_ 29 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698