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