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

Side by Side Diff: content/common/font_warmup_win.h

Issue 1514183002: Revert "Create direct write font proxy classes and unit tests." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/common/dwrite_font_proxy_messages.h ('k') | content/common/font_warmup_win.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 #ifndef CONTENT_COMMON_FONT_WARMUP_WIN_H_ 5 #ifndef CONTENT_COMMON_FONT_WARMUP_WIN_H_
6 #define CONTENT_COMMON_FONT_WARMUP_WIN_H_ 6 #define CONTENT_COMMON_FONT_WARMUP_WIN_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Testing method to reset the table of emulated GDI handles. 43 // Testing method to reset the table of emulated GDI handles.
44 CONTENT_EXPORT void ResetEmulatedGdiHandlesForTesting(); 44 CONTENT_EXPORT void ResetEmulatedGdiHandlesForTesting();
45 45
46 // Sets the pre-sandbox warmup font manager directly. This should only be used 46 // Sets the pre-sandbox warmup font manager directly. This should only be used
47 // for testing the implementation. 47 // for testing the implementation.
48 CONTENT_EXPORT void SetPreSandboxWarmupFontMgrForTesting(SkFontMgr* fontmgr); 48 CONTENT_EXPORT void SetPreSandboxWarmupFontMgrForTesting(SkFontMgr* fontmgr);
49 49
50 // Warmup the direct write font manager for content processes. 50 // Warmup the direct write font manager for content processes.
51 CONTENT_EXPORT void WarmupDirectWrite(); 51 CONTENT_EXPORT void WarmupDirectWrite();
52 52
53 // Directwrite connects to the font cache service to retrieve information about
54 // fonts installed on the system etc. This works well outside the sandbox and
55 // within the sandbox as long as the lpc connection maintained by the current
56 // process with the font cache service remains valid. It appears that there
57 // are cases when this connection is dropped after which directwrite is unable
58 // to connect to the font cache service which causes problems with characters
59 // disappearing.
60 // Directwrite has fallback code to enumerate fonts if it is unable to connect
61 // to the font cache service. We need to intercept the following APIs to
62 // ensure that it does not connect to the font cache service.
63 // NtALpcConnectPort
64 // OpenSCManagerW
65 // OpenServiceW
66 // StartServiceW
67 // CloseServiceHandle.
68 // These are all IAT patched.
69 CONTENT_EXPORT void PatchServiceManagerCalls();
70
71 } // namespace content 53 } // namespace content
72 54
73 #endif // CONTENT_COMMON_FONT_WARMUP_WIN_H_ 55 #endif // CONTENT_COMMON_FONT_WARMUP_WIN_H_
OLDNEW
« no previous file with comments | « content/common/dwrite_font_proxy_messages.h ('k') | content/common/font_warmup_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698