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

Unified Diff: content/ppapi_plugin/ppapi_plugin_main.cc

Issue 2182213004: Use ChildThreadImpl::thread_safe_sender in font proxy if available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 4 years, 5 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: content/ppapi_plugin/ppapi_plugin_main.cc
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc
index 2afc58d2f776f1a37d537a2ca57965c7b9065822..08311e7ec63b8dd1deefedb0bfb1fafe11831c76 100644
--- a/content/ppapi_plugin/ppapi_plugin_main.cc
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc
@@ -131,9 +131,10 @@ int PpapiPluginMain(const MainFunctionParams& parameters) {
#if defined(OS_WIN)
if (!base::win::IsUser32AndGdi32Available())
gfx::win::MaybeInitializeDirectWrite();
- InitializeDWriteFontProxy();
-
blink::WebFontRendering::setDeviceScaleFactor(display::win::GetDPIScale());
+ InitializeDWriteFontProxy(
+ base::Bind(&ppapi::proxy::PluginGlobals::GetBrowserSender,
+ base::Unretained(ppapi::proxy::PluginGlobals::Get())));
const gfx::FontRenderParams font_params =
gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr);

Powered by Google App Engine
This is Rietveld 408576698