OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <objidl.h> | 9 #include <objidl.h> |
10 #include <mlang.h> | 10 #include <mlang.h> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 DCHECK(gdi_init_lpk); | 57 DCHECK(gdi_init_lpk); |
58 if (gdi_init_lpk) { | 58 if (gdi_init_lpk) { |
59 gdi_init_lpk(0); | 59 gdi_init_lpk(0); |
60 } | 60 } |
61 } | 61 } |
62 #endif | 62 #endif |
63 | 63 |
64 // Out of process dev tools rely upon auto break behavior. | 64 // Out of process dev tools rely upon auto break behavior. |
65 webkit_glue::SetJavaScriptFlags( | 65 webkit_glue::SetJavaScriptFlags( |
66 "--debugger-auto-break" | 66 "--debugger-auto-break" |
67 // Enable lazy in-memory profiling. | 67 // Enable on-demand profiling. |
68 " --prof --prof-lazy --logfile=*"); | 68 " --prof --prof-lazy"); |
69 | 69 |
70 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 70 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
71 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 71 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
72 webkit_glue::SetJavaScriptFlags( | 72 webkit_glue::SetJavaScriptFlags( |
73 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); | 73 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 RenderProcessImpl::~RenderProcessImpl() { | 77 RenderProcessImpl::~RenderProcessImpl() { |
78 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. | 78 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 230 } |
231 | 231 |
232 void RenderProcessImpl::ClearTransportDIBCache() { | 232 void RenderProcessImpl::ClearTransportDIBCache() { |
233 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 233 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
234 if (shared_mem_cache_[i]) { | 234 if (shared_mem_cache_[i]) { |
235 FreeTransportDIB(shared_mem_cache_[i]); | 235 FreeTransportDIB(shared_mem_cache_[i]); |
236 shared_mem_cache_[i] = NULL; | 236 shared_mem_cache_[i] = NULL; |
237 } | 237 } |
238 } | 238 } |
239 } | 239 } |
OLD | NEW |