| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { | 85 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { |
| 86 StatisticsRecorder::set_dump_on_exit(true); | 86 StatisticsRecorder::set_dump_on_exit(true); |
| 87 } | 87 } |
| 88 | 88 |
| 89 #ifndef DISABLE_NACL | 89 #ifndef DISABLE_NACL |
| 90 if (command_line.HasSwitch(switches::kInternalNaCl)) | 90 if (command_line.HasSwitch(switches::kInternalNaCl)) |
| 91 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); | 91 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); |
| 92 #endif | 92 #endif |
| 93 | 93 |
| 94 if (command_line.HasSwitch(switches::kEnableByteRangeSupport)) { | 94 if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) { |
| 95 webkit_glue::SetMediaCacheEnabled(true); | 95 webkit_glue::SetMediaCacheEnabled(true); |
| 96 } | 96 } |
| 97 | 97 |
| 98 #if defined(OS_MACOSX) | 98 #if defined(OS_MACOSX) |
| 99 FilePath bundle_path = mac_util::MainAppBundlePath(); | 99 FilePath bundle_path = mac_util::MainAppBundlePath(); |
| 100 | 100 |
| 101 initialized_media_library_ = | 101 initialized_media_library_ = |
| 102 media::InitializeMediaLibrary(bundle_path.Append("Libraries")); | 102 media::InitializeMediaLibrary(bundle_path.Append("Libraries")); |
| 103 #else | 103 #else |
| 104 FilePath module_path; | 104 FilePath module_path; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 283 } |
| 284 | 284 |
| 285 void RenderProcess::ClearTransportDIBCache() { | 285 void RenderProcess::ClearTransportDIBCache() { |
| 286 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 286 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 287 if (shared_mem_cache_[i]) { | 287 if (shared_mem_cache_[i]) { |
| 288 FreeTransportDIB(shared_mem_cache_[i]); | 288 FreeTransportDIB(shared_mem_cache_[i]); |
| 289 shared_mem_cache_[i] = NULL; | 289 shared_mem_cache_[i] = NULL; |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 } | 292 } |
| OLD | NEW |