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

Side by Side Diff: content/public/common/dwrite_font_platform_win.h

Issue 1557513002: Add logic to switch to DirectWrite font proxy via field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_
6 #define CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ 6 #define CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 18 matching lines...) Expand all
29 CONTENT_EXPORT bool BuildFontCache(const base::FilePath& file); 29 CONTENT_EXPORT bool BuildFontCache(const base::FilePath& file);
30 30
31 // Loads font cache from file. This is supposed to be used from browser 31 // Loads font cache from file. This is supposed to be used from browser
32 // side where loading means creating readonly shared memory file mapping so that 32 // side where loading means creating readonly shared memory file mapping so that
33 // renderers can read from it. 33 // renderers can read from it.
34 CONTENT_EXPORT bool LoadFontCache(const base::FilePath& path); 34 CONTENT_EXPORT bool LoadFontCache(const base::FilePath& path);
35 35
36 // Added in header mainly for unittest 36 // Added in header mainly for unittest
37 CONTENT_EXPORT bool ValidateFontCacheFile(base::File* file); 37 CONTENT_EXPORT bool ValidateFontCacheFile(base::File* file);
38 38
39 // Determines whether code should use the DirectWrite font proxy codepathh.
fdoray 2015/12/30 01:15:08 *codepath
Ilya Kulshin 2015/12/30 01:59:46 Done.
40 // Note that this function only checks whether the field trial is enabled.
41 // Callers are still expected to take appropriate action based on the return
42 // value.
43 CONTENT_EXPORT bool ShouldUseDirectWriteFontProxyFieldTrial();
44
39 } // namespace content 45 } // namespace content
40 46
41 #endif // CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ 47 #endif // CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698