| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "ui/gl/gpu_switching_manager.h" | 31 #include "ui/gl/gpu_switching_manager.h" |
| 32 | 32 |
| 33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
| 34 #include "base/win/scoped_com_initializer.h" | 34 #include "base/win/scoped_com_initializer.h" |
| 35 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" | 35 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" |
| 36 #include "sandbox/win/src/sandbox.h" | 36 #include "sandbox/win/src/sandbox.h" |
| 37 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) | 37 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
| 38 #include "content/common/gpu/media/exynos_video_decode_accelerator.h" | 38 #include "content/common/gpu/media/exynos_video_decode_accelerator.h" |
| 39 #include "content/common/gpu/media/omx_video_decode_accelerator.h" | 39 #include "content/common/gpu/media/omx_video_decode_accelerator.h" |
| 40 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) | 40 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) |
| 41 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" | 41 #include "content/common/gpu/media/vaapi_wrapper.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 #if defined(USE_X11) | 44 #if defined(USE_X11) |
| 45 #include "ui/base/x/x11_util.h" | 45 #include "ui/base/x/x11_util.h" |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #if defined(OS_LINUX) | 48 #if defined(OS_LINUX) |
| 49 #include "content/public/common/sandbox_init.h" | 49 #include "content/public/common/sandbox_init.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 bool ret = hmac.Init(&key, sizeof(key)); | 317 bool ret = hmac.Init(&key, sizeof(key)); |
| 318 (void) ret; | 318 (void) ret; |
| 319 } | 319 } |
| 320 | 320 |
| 321 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) | 321 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
| 322 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseExynosVda)) | 322 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseExynosVda)) |
| 323 ExynosVideoDecodeAccelerator::PreSandboxInitialization(); | 323 ExynosVideoDecodeAccelerator::PreSandboxInitialization(); |
| 324 else | 324 else |
| 325 OmxVideoDecodeAccelerator::PreSandboxInitialization(); | 325 OmxVideoDecodeAccelerator::PreSandboxInitialization(); |
| 326 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) | 326 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) |
| 327 VaapiVideoDecodeAccelerator::PreSandboxInitialization(); | 327 VaapiWrapper::PreSandboxInitialization(); |
| 328 #endif | 328 #endif |
| 329 | 329 |
| 330 #if defined(OS_WIN) | 330 #if defined(OS_WIN) |
| 331 { | 331 { |
| 332 TRACE_EVENT0("gpu", "Preload setupapi.dll"); | 332 TRACE_EVENT0("gpu", "Preload setupapi.dll"); |
| 333 // Preload this DLL because the sandbox prevents it from loading. | 333 // Preload this DLL because the sandbox prevents it from loading. |
| 334 LoadLibrary(L"setupapi.dll"); | 334 LoadLibrary(L"setupapi.dll"); |
| 335 } | 335 } |
| 336 | 336 |
| 337 { | 337 { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 return true; | 389 return true; |
| 390 } | 390 } |
| 391 | 391 |
| 392 return false; | 392 return false; |
| 393 } | 393 } |
| 394 #endif // defined(OS_WIN) | 394 #endif // defined(OS_WIN) |
| 395 | 395 |
| 396 } // namespace. | 396 } // namespace. |
| 397 | 397 |
| 398 } // namespace content | 398 } // namespace content |
| OLD | NEW |