OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
11 #endif | 11 #endif |
12 | 12 |
13 #include "chrome/renderer/render_process_impl.h" | 13 #include "content/renderer/render_process_impl.h" |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
22 #include "base/sys_info.h" | 22 #include "base/sys_info.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 void RenderProcessImpl::ClearTransportDIBCache() { | 340 void RenderProcessImpl::ClearTransportDIBCache() { |
341 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 341 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
342 if (shared_mem_cache_[i]) { | 342 if (shared_mem_cache_[i]) { |
343 FreeTransportDIB(shared_mem_cache_[i]); | 343 FreeTransportDIB(shared_mem_cache_[i]); |
344 shared_mem_cache_[i] = NULL; | 344 shared_mem_cache_[i] = NULL; |
345 } | 345 } |
346 } | 346 } |
347 } | 347 } |
OLD | NEW |