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

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

Issue 23526070: Remove GSC usage from ExynosVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: 11845b4b crop fix, rebase. Created 7 years, 1 month 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
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 <dwmapi.h> 8 #include <dwmapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // Warm up the crypto subsystem, which needs to done pre-sandbox on all 354 // Warm up the crypto subsystem, which needs to done pre-sandbox on all
355 // platforms. 355 // platforms.
356 crypto::HMAC hmac(crypto::HMAC::SHA256); 356 crypto::HMAC hmac(crypto::HMAC::SHA256);
357 unsigned char key = '\0'; 357 unsigned char key = '\0';
358 if (!hmac.Init(&key, sizeof(key))) { 358 if (!hmac.Init(&key, sizeof(key))) {
359 LOG(ERROR) << "WarmUpSandbox() failed with crypto::HMAC::Init()"; 359 LOG(ERROR) << "WarmUpSandbox() failed with crypto::HMAC::Init()";
360 return false; 360 return false;
361 } 361 }
362 } 362 }
363 363
364 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) 364 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11)
365 ExynosVideoDecodeAccelerator::PreSandboxInitialization();
366 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11)
367 VaapiWrapper::PreSandboxInitialization(); 365 VaapiWrapper::PreSandboxInitialization();
368 #endif 366 #endif
369 367
370 #if defined(OS_WIN) 368 #if defined(OS_WIN)
371 { 369 {
372 TRACE_EVENT0("gpu", "Preload setupapi.dll"); 370 TRACE_EVENT0("gpu", "Preload setupapi.dll");
373 // Preload this DLL because the sandbox prevents it from loading. 371 // Preload this DLL because the sandbox prevents it from loading.
374 if (LoadLibrary(L"setupapi.dll") == NULL) { 372 if (LoadLibrary(L"setupapi.dll") == NULL) {
375 LOG(ERROR) << "WarmUpSandbox() failed with loading setupapi.dll"; 373 LOG(ERROR) << "WarmUpSandbox() failed with loading setupapi.dll";
376 return false; 374 return false;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 return true; 450 return true;
453 } 451 }
454 452
455 return false; 453 return false;
456 } 454 }
457 #endif // defined(OS_WIN) 455 #endif // defined(OS_WIN)
458 456
459 } // namespace. 457 } // namespace.
460 458
461 } // namespace content 459 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698