OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 gdi_init_lpk(0); | 124 gdi_init_lpk(0); |
125 } | 125 } |
126 } | 126 } |
127 #endif | 127 #endif |
128 | 128 |
129 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 129 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
130 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 130 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
131 webkit_glue::SetJavaScriptFlags( | 131 webkit_glue::SetJavaScriptFlags( |
132 command_line.GetSwitchValue(switches::kJavaScriptFlags)); | 132 command_line.GetSwitchValue(switches::kJavaScriptFlags)); |
133 } | 133 } |
134 if (command_line.HasSwitch(switches::kPlaybackMode) || | |
135 command_line.HasSwitch(switches::kRecordMode)) { | |
136 webkit_glue::SetRecordPlaybackMode(true); | |
137 } | |
138 | 134 |
139 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 135 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
140 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 136 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
141 } | 137 } |
142 | 138 |
143 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { | 139 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { |
144 StatisticsRecorder::set_dump_on_exit(true); | 140 StatisticsRecorder::set_dump_on_exit(true); |
145 } | 141 } |
146 | 142 |
147 if (command_line.HasSwitch(switches::kGearsInRenderer)) { | 143 if (command_line.HasSwitch(switches::kGearsInRenderer)) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 } | 293 } |
298 | 294 |
299 void RenderProcess::ClearTransportDIBCache() { | 295 void RenderProcess::ClearTransportDIBCache() { |
300 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 296 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
301 if (shared_mem_cache_[i]) { | 297 if (shared_mem_cache_[i]) { |
302 FreeTransportDIB(shared_mem_cache_[i]); | 298 FreeTransportDIB(shared_mem_cache_[i]); |
303 shared_mem_cache_[i] = NULL; | 299 shared_mem_cache_[i] = NULL; |
304 } | 300 } |
305 } | 301 } |
306 } | 302 } |
OLD | NEW |