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

Side by Side Diff: ui/gfx/font_render_params.h

Issue 2817663003: Rendering text on insecure-site warnings for WebVR (Closed)
Patch Set: Using enable_vr flag. Created 3 years, 8 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 UI_GFX_FONT_RENDER_PARAMS_H_ 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_
6 #define UI_GFX_FONT_RENDER_PARAMS_H_ 6 #define UI_GFX_FONT_RENDER_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 GFX_EXPORT FontRenderParams GetFontRenderParams( 105 GFX_EXPORT FontRenderParams GetFontRenderParams(
106 const FontRenderParamsQuery& query, 106 const FontRenderParamsQuery& query,
107 std::string* family_out); 107 std::string* family_out);
108 108
109 #if defined(OS_LINUX) 109 #if defined(OS_LINUX)
110 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are 110 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are
111 // changing Fontconfig's configuration. 111 // changing Fontconfig's configuration.
112 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); 112 GFX_EXPORT void ClearFontRenderParamsCacheForTest();
113 #endif 113 #endif
114 114
115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) 115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_ANDROID)
mthiesse 2017/04/13 14:16:51 You would need to also include ENABLE_VR here or y
sadrul 2017/04/13 14:57:55 I think if you add ENABLE_VR, then you won't need
acondor_ 2017/04/18 20:59:04 Added ENABLE_VR check. mthiesse, what are your tho
116 // Gets the device scale factor to query the FontRenderParams. 116 // Gets the device scale factor to query the FontRenderParams.
117 GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); 117 GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor();
118 118
119 // Sets the device scale factor for FontRenderParams to decide 119 // Sets the device scale factor for FontRenderParams to decide
120 // if it should enable subpixel positioning. 120 // if it should enable subpixel positioning.
121 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( 121 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor(
sadrul 2017/04/13 14:57:55 It doesn't look like there's any android code that
acondor_ 2017/04/18 20:59:04 Thanks. Added a TODO for that on vr_shell.cc
122 float device_scale_factor); 122 float device_scale_factor);
123 #endif 123 #endif
124 124
125 } // namespace gfx 125 } // namespace gfx
126 126
127 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ 127 #endif // UI_GFX_FONT_RENDER_PARAMS_H_
OLDNEW
« ui/gfx/BUILD.gn ('K') | « ui/gfx/BUILD.gn ('k') | ui/gfx/font_render_params_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698