| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 if (gdi_init_lpk) { | 144 if (gdi_init_lpk) { |
| 145 gdi_init_lpk(0); | 145 gdi_init_lpk(0); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 // Out of process dev tools rely upon auto break behavior. | 150 // Out of process dev tools rely upon auto break behavior. |
| 151 webkit_glue::SetJavaScriptFlags( | 151 webkit_glue::SetJavaScriptFlags( |
| 152 "--debugger-auto-break" | 152 "--debugger-auto-break" |
| 153 // Enable lazy in-memory profiling. | 153 // Enable lazy in-memory profiling. |
| 154 " --prof --prof-lazy"); | 154 " --prof --prof-lazy --logfile=*"); |
| 155 | 155 |
| 156 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 156 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 157 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 157 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
| 158 webkit_glue::SetJavaScriptFlags( | 158 webkit_glue::SetJavaScriptFlags( |
| 159 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); | 159 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); |
| 160 } | 160 } |
| 161 | 161 |
| 162 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 162 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
| 163 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 163 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
| 164 } | 164 } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 } | 371 } |
| 372 | 372 |
| 373 void RenderProcessImpl::ClearTransportDIBCache() { | 373 void RenderProcessImpl::ClearTransportDIBCache() { |
| 374 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 374 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 375 if (shared_mem_cache_[i]) { | 375 if (shared_mem_cache_[i]) { |
| 376 FreeTransportDIB(shared_mem_cache_[i]); | 376 FreeTransportDIB(shared_mem_cache_[i]); |
| 377 shared_mem_cache_[i] = NULL; | 377 shared_mem_cache_[i] = NULL; |
| 378 } | 378 } |
| 379 } | 379 } |
| 380 } | 380 } |
| OLD | NEW |