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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 2306193002: Fix antialiasing ppapi settings, browser_tests in win32k lockdown (Closed)
Patch Set: no fatal Created 4 years, 3 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
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_plugin_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 6515b8ed8edf755ab2b329592632ca4f98e01191..bd6391cbfa5b13ce266a2b9d3cd492c81116b20e 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -48,6 +48,7 @@
#include "sandbox/win/src/process_mitigations.h"
#include "sandbox/win/src/sandbox_policy.h"
#include "ui/display/win/dpi.h"
+#include "ui/gfx/font_render_params.h"
#endif
namespace content {
@@ -439,6 +440,13 @@ bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) {
cmd_line->AppendSwitchASCII(
switches::kDeviceScaleFactor,
base::DoubleToString(display::win::GetDPIScale()));
+ const gfx::FontRenderParams font_params =
+ gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr);
+ cmd_line->AppendSwitchASCII(switches::kPpapiAntialiasedTextEnabled,
+ base::IntToString(font_params.antialiasing));
+ cmd_line->AppendSwitchASCII(
+ switches::kPpapiSubpixelRenderingSetting,
+ base::IntToString(font_params.subpixel_rendering));
#endif
if (!plugin_launcher.empty())
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698