Index: content/common/gpu/media/gpu_jpeg_decode_accelerator.cc |
diff --git a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc |
index 6bf6ae4fba7d8c9ea451af3334740a0647f4a69f..4fb97f8aef2193b0bd80ca05ad972b3d3fa4d3e1 100644 |
--- a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc |
+++ b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc |
@@ -23,7 +23,7 @@ |
#include "media/gpu/ipc/common/media_messages.h" |
#include "ui/gfx/geometry/size.h" |
-#if defined(OS_CHROMEOS) |
+#if defined(OS_CHROMEOS) || defined(OS_LINUX) |
#if defined(ARCH_CPU_X86_FAMILY) |
#include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h" |
#endif |
@@ -401,7 +401,7 @@ std::unique_ptr<media::JpegDecodeAccelerator> |
GpuJpegDecodeAccelerator::CreateVaapiJDA( |
const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) { |
std::unique_ptr<media::JpegDecodeAccelerator> decoder; |
-#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
+#if (defined(OS_CHROMEOS) || defined(OS_LINUX)) && defined(ARCH_CPU_X86_FAMILY) |
decoder.reset(new VaapiJpegDecodeAccelerator(io_task_runner)); |
#endif |
return decoder; |