| OLD | NEW |
| 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 #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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 webkit_glue::SetJavaScriptFlags( | 64 webkit_glue::SetJavaScriptFlags( |
| 65 "--debugger-auto-break" | 65 "--debugger-auto-break" |
| 66 // Enable on-demand profiling. | 66 // Enable on-demand profiling. |
| 67 " --prof --prof-lazy"); | 67 " --prof --prof-lazy"); |
| 68 | 68 |
| 69 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 69 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 70 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 70 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
| 71 webkit_glue::SetJavaScriptFlags( | 71 webkit_glue::SetJavaScriptFlags( |
| 72 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); | 72 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); |
| 73 } | 73 } |
| 74 | |
| 75 if (command_line.HasSwitch(switches::kDartFlags)) { | |
| 76 webkit_glue::SetDartFlags( | |
| 77 command_line.GetSwitchValueASCII(switches::kDartFlags)); | |
| 78 } | |
| 79 } | 74 } |
| 80 | 75 |
| 81 RenderProcessImpl::~RenderProcessImpl() { | 76 RenderProcessImpl::~RenderProcessImpl() { |
| 82 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. | 77 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. |
| 83 #ifndef NDEBUG | 78 #ifndef NDEBUG |
| 84 // log important leaked objects | 79 // log important leaked objects |
| 85 webkit_glue::CheckForLeaks(); | 80 webkit_glue::CheckForLeaks(); |
| 86 #endif | 81 #endif |
| 87 | 82 |
| 88 GetShutDownEvent()->Signal(); | 83 GetShutDownEvent()->Signal(); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 230 } |
| 236 | 231 |
| 237 void RenderProcessImpl::ClearTransportDIBCache() { | 232 void RenderProcessImpl::ClearTransportDIBCache() { |
| 238 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 233 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 239 if (shared_mem_cache_[i]) { | 234 if (shared_mem_cache_[i]) { |
| 240 FreeTransportDIB(shared_mem_cache_[i]); | 235 FreeTransportDIB(shared_mem_cache_[i]); |
| 241 shared_mem_cache_[i] = NULL; | 236 shared_mem_cache_[i] = NULL; |
| 242 } | 237 } |
| 243 } | 238 } |
| 244 } | 239 } |
| OLD | NEW |