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

Unified Diff: ui/gfx/font_render_params.h

Issue 1021643002: Retrieve and pass subpixel lcd geometry on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ws Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/font_render_params.h
diff --git a/ui/gfx/font_render_params.h b/ui/gfx/font_render_params.h
index 977a4955c021fac22f9aa834964a9f3a851d208a..0bf10d468382232709bb5442894d217e57484b44 100644
--- a/ui/gfx/font_render_params.h
+++ b/ui/gfx/font_render_params.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "third_party/skia/include/core/SkFontHost.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -57,6 +58,11 @@ struct GFX_EXPORT FontRenderParams {
// Whether subpixel rendering should be used or not, and if so, the display's
// subpixel order.
SubpixelRendering subpixel_rendering;
+
+ static SkFontHost::LCDOrder SubpixelRenderingToSkiaLCDOrder(
+ SubpixelRendering subpixel_rendering);
+ static SkFontHost::LCDOrientation SubpixelRenderingToSkiaLCDOrientation(
+ SubpixelRendering subpixel_rendering);
};
// A query used to determine the appropriate FontRenderParams.

Powered by Google App Engine
This is Rietveld 408576698