Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: content/gpu/gpu_main.cc

Issue 21584002: Delete dead code: OmxVideoDecodeAccelerator is unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-removing both OWNERS & README Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // platforms. 346 // platforms.
347 crypto::HMAC hmac(crypto::HMAC::SHA256); 347 crypto::HMAC hmac(crypto::HMAC::SHA256);
348 unsigned char key = '\0'; 348 unsigned char key = '\0';
349 if (!hmac.Init(&key, sizeof(key))) { 349 if (!hmac.Init(&key, sizeof(key))) {
350 LOG(ERROR) << "WarmUpSandbox() failed with crypto::HMAC::Init()"; 350 LOG(ERROR) << "WarmUpSandbox() failed with crypto::HMAC::Init()";
351 return false; 351 return false;
352 } 352 }
353 } 353 }
354 354
355 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) 355 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11)
356 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseExynosVda)) 356 ExynosVideoDecodeAccelerator::PreSandboxInitialization();
357 ExynosVideoDecodeAccelerator::PreSandboxInitialization();
358 else
359 OmxVideoDecodeAccelerator::PreSandboxInitialization();
360 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) 357 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11)
361 VaapiWrapper::PreSandboxInitialization(); 358 VaapiWrapper::PreSandboxInitialization();
362 #endif 359 #endif
363 360
364 #if defined(OS_WIN) 361 #if defined(OS_WIN)
365 { 362 {
366 TRACE_EVENT0("gpu", "Preload setupapi.dll"); 363 TRACE_EVENT0("gpu", "Preload setupapi.dll");
367 // Preload this DLL because the sandbox prevents it from loading. 364 // Preload this DLL because the sandbox prevents it from loading.
368 if (LoadLibrary(L"setupapi.dll") == NULL) { 365 if (LoadLibrary(L"setupapi.dll") == NULL) {
369 LOG(ERROR) << "WarmUpSandbox() failed with loading setupapi.dll"; 366 LOG(ERROR) << "WarmUpSandbox() failed with loading setupapi.dll";
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 return true; 424 return true;
428 } 425 }
429 426
430 return false; 427 return false;
431 } 428 }
432 #endif // defined(OS_WIN) 429 #endif // defined(OS_WIN)
433 430
434 } // namespace. 431 } // namespace.
435 432
436 } // namespace content 433 } // namespace content
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698