| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if (gdi_init_lpk) { | 139 if (gdi_init_lpk) { |
| 140 gdi_init_lpk(0); | 140 gdi_init_lpk(0); |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 // Out of process dev tools rely upon auto break behavior. | 145 // Out of process dev tools rely upon auto break behavior. |
| 146 webkit_glue::SetJavaScriptFlags( | 146 webkit_glue::SetJavaScriptFlags( |
| 147 "--debugger-auto-break" | 147 "--debugger-auto-break" |
| 148 // Enable lazy in-memory profiling. | 148 // Enable lazy in-memory profiling. |
| 149 " --prof --prof-lazy --logfile=* --compress-log"); | 149 " --prof --prof-lazy"); |
| 150 | 150 |
| 151 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 151 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 152 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 152 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
| 153 webkit_glue::SetJavaScriptFlags( | 153 webkit_glue::SetJavaScriptFlags( |
| 154 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); | 154 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); |
| 155 } | 155 } |
| 156 | 156 |
| 157 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 157 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
| 158 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 158 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
| 159 } | 159 } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 366 } |
| 367 | 367 |
| 368 void RenderProcessImpl::ClearTransportDIBCache() { | 368 void RenderProcessImpl::ClearTransportDIBCache() { |
| 369 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 369 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 370 if (shared_mem_cache_[i]) { | 370 if (shared_mem_cache_[i]) { |
| 371 FreeTransportDIB(shared_mem_cache_[i]); | 371 FreeTransportDIB(shared_mem_cache_[i]); |
| 372 shared_mem_cache_[i] = NULL; | 372 shared_mem_cache_[i] = NULL; |
| 373 } | 373 } |
| 374 } | 374 } |
| 375 } | 375 } |
| OLD | NEW |