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

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

Issue 724633002: DirectWrite Font Cache browser side hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 1048 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
1049 command_line, GetID()); 1049 command_line, GetID());
1050 1050
1051 if (IsPinchToZoomEnabled()) 1051 if (IsPinchToZoomEnabled())
1052 command_line->AppendSwitch(switches::kEnablePinch); 1052 command_line->AppendSwitch(switches::kEnablePinch);
1053 1053
1054 #if defined(OS_WIN) 1054 #if defined(OS_WIN)
1055 command_line->AppendSwitchASCII(switches::kDeviceScaleFactor, 1055 command_line->AppendSwitchASCII(switches::kDeviceScaleFactor,
1056 base::DoubleToString(gfx::GetDPIScale())); 1056 base::DoubleToString(gfx::GetDPIScale()));
1057 command_line->AppendSwitchASCII(
1058 switches::kFontCacheSharedMemSuffix,
1059 base::UintToString(base::GetCurrentProcId()));
1057 #endif 1060 #endif
1058 1061
1059 AppendCompositorCommandLineFlags(command_line); 1062 AppendCompositorCommandLineFlags(command_line);
1060 } 1063 }
1061 1064
1062 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( 1065 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
1063 const base::CommandLine& browser_cmd, 1066 const base::CommandLine& browser_cmd,
1064 base::CommandLine* renderer_cmd) const { 1067 base::CommandLine* renderer_cmd) const {
1065 // Propagate the following switches to the renderer command line (along 1068 // Propagate the following switches to the renderer command line (along
1066 // with any associated values) if present in the browser command line. 1069 // with any associated values) if present in the browser command line.
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 2240
2238 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2241 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2239 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2242 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2240 DCHECK_GT(worker_ref_count_, 0); 2243 DCHECK_GT(worker_ref_count_, 0);
2241 --worker_ref_count_; 2244 --worker_ref_count_;
2242 if (worker_ref_count_ == 0) 2245 if (worker_ref_count_ == 0)
2243 Cleanup(); 2246 Cleanup();
2244 } 2247 }
2245 2248
2246 } // namespace content 2249 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698