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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1122163002: Ensure that the DirectWrite font cache works in Chrome canary on Windows 8+ with AppContainer prote… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to tip Created 5 years, 7 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
« no previous file with comments | « no previous file | content/common/dwrite_font_platform_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1176
1177 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 1177 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
1178 command_line, GetID()); 1178 command_line, GetID());
1179 1179
1180 if (IsPinchToZoomEnabled()) 1180 if (IsPinchToZoomEnabled())
1181 command_line->AppendSwitch(switches::kEnablePinch); 1181 command_line->AppendSwitch(switches::kEnablePinch);
1182 1182
1183 #if defined(OS_WIN) 1183 #if defined(OS_WIN)
1184 command_line->AppendSwitchASCII(switches::kDeviceScaleFactor, 1184 command_line->AppendSwitchASCII(switches::kDeviceScaleFactor,
1185 base::DoubleToString(gfx::GetDPIScale())); 1185 base::DoubleToString(gfx::GetDPIScale()));
1186 command_line->AppendSwitchASCII(
1187 switches::kFontCacheSharedMemSuffix,
1188 base::UintToString(base::GetCurrentProcId()));
1189 #endif 1186 #endif
1190 1187
1191 AppendCompositorCommandLineFlags(command_line); 1188 AppendCompositorCommandLineFlags(command_line);
1192 } 1189 }
1193 1190
1194 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( 1191 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
1195 const base::CommandLine& browser_cmd, 1192 const base::CommandLine& browser_cmd,
1196 base::CommandLine* renderer_cmd) const { 1193 base::CommandLine* renderer_cmd) const {
1197 // Propagate the following switches to the renderer command line (along 1194 // Propagate the following switches to the renderer command line (along
1198 // with any associated values) if present in the browser command line. 1195 // with any associated values) if present in the browser command line.
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 if (worker_ref_count_ == 0) 2454 if (worker_ref_count_ == 0)
2458 Cleanup(); 2455 Cleanup();
2459 } 2456 }
2460 2457
2461 void RenderProcessHostImpl::GetAudioOutputControllers( 2458 void RenderProcessHostImpl::GetAudioOutputControllers(
2462 const GetAudioOutputControllersCallback& callback) const { 2459 const GetAudioOutputControllersCallback& callback) const {
2463 audio_renderer_host()->GetOutputControllers(callback); 2460 audio_renderer_host()->GetOutputControllers(callback);
2464 } 2461 }
2465 2462
2466 } // namespace content 2463 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/dwrite_font_platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698