| 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 26 matching lines...) Expand all Loading... |
| 37 #include "webkit/plugins/npapi/plugin_lib.h" | 37 #include "webkit/plugins/npapi/plugin_lib.h" |
| 38 #include "webkit/glue/webkit_glue.h" | 38 #include "webkit/glue/webkit_glue.h" |
| 39 | 39 |
| 40 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
| 41 #include "base/mac/mac_util.h" | 41 #include "base/mac/mac_util.h" |
| 42 #elif defined(OS_WIN) | 42 #elif defined(OS_WIN) |
| 43 #include "app/win/iat_patch_function.h" | 43 #include "app/win/iat_patch_function.h" |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 #if defined(OS_LINUX) | 46 #if defined(OS_LINUX) |
| 47 #include "chrome/renderer/renderer_sandbox_support_linux.h" | 47 #include "content/renderer/renderer_sandbox_support_linux.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 51 | 51 |
| 52 static app::win::IATPatchFunction g_iat_patch_createdca; | 52 static app::win::IATPatchFunction g_iat_patch_createdca; |
| 53 HDC WINAPI CreateDCAPatch(LPCSTR driver_name, | 53 HDC WINAPI CreateDCAPatch(LPCSTR driver_name, |
| 54 LPCSTR device_name, | 54 LPCSTR device_name, |
| 55 LPCSTR output, | 55 LPCSTR output, |
| 56 const void* init_data) { | 56 const void* init_data) { |
| 57 DCHECK(std::string("DISPLAY") == std::string(driver_name)); | 57 DCHECK(std::string("DISPLAY") == std::string(driver_name)); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 | 331 |
| 332 void RenderProcessImpl::ClearTransportDIBCache() { | 332 void RenderProcessImpl::ClearTransportDIBCache() { |
| 333 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 333 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 334 if (shared_mem_cache_[i]) { | 334 if (shared_mem_cache_[i]) { |
| 335 FreeTransportDIB(shared_mem_cache_[i]); | 335 FreeTransportDIB(shared_mem_cache_[i]); |
| 336 shared_mem_cache_[i] = NULL; | 336 shared_mem_cache_[i] = NULL; |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 } | 339 } |
| OLD | NEW |