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

Unified Diff: content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc

Issue 1260923002: Enable MJPEG HW decode accelerator on Intel CrOS platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
diff --git a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
index 011d8e8e1b7a93676443208d71ad35a3ff72f552..ffe9d6abd58e8061f8778afdd5f8d4a21815dc32 100644
--- a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
+++ b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
@@ -51,12 +51,13 @@ void VideoCaptureGpuJpegDecoder::Initialize() {
// Non-ChromeOS platforms do not support HW JPEG decode now. Do not establish
// gpu channel to introduce overhead.
-#if !defined(OS_CHROMEOS)
+ // TODO(henryhsu): enable on ARM platform after V4L2 JDA is ready.
+#if !defined(OS_CHROMEOS) || !defined(ARCH_CPU_X86_FAMILY)
init_status_ = INIT_FAILED;
return;
#else
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableAcceleratedMjpegDecode)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableAcceleratedMjpegDecode)) {
init_status_ = INIT_FAILED;
return;
}
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698