| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/gpu/media/gpu_jpeg_decode_accelerator.h" | 5 #include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/common/gpu/gpu_channel.h" | 19 #include "content/common/gpu/gpu_channel.h" |
| 20 #include "content/common/gpu/media_messages.h" | 20 #include "content/common/gpu/media/media_messages.h" |
| 21 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
| 22 #include "ipc/message_filter.h" | 22 #include "ipc/message_filter.h" |
| 23 #include "media/filters/jpeg_parser.h" | 23 #include "media/filters/jpeg_parser.h" |
| 24 #include "ui/gfx/geometry/size.h" | 24 #include "ui/gfx/geometry/size.h" |
| 25 | 25 |
| 26 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| 27 #if defined(ARCH_CPU_X86_FAMILY) | 27 #if defined(ARCH_CPU_X86_FAMILY) |
| 28 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h" | 28 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h" |
| 29 #endif | 29 #endif |
| 30 #if defined(USE_V4L2_CODEC) | 30 #if defined(USE_V4L2_CODEC) |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 for (const auto& create_jda_function : create_jda_fps) { | 414 for (const auto& create_jda_function : create_jda_fps) { |
| 415 scoped_ptr<media::JpegDecodeAccelerator> accelerator = | 415 scoped_ptr<media::JpegDecodeAccelerator> accelerator = |
| 416 (*create_jda_function)(base::ThreadTaskRunnerHandle::Get()); | 416 (*create_jda_function)(base::ThreadTaskRunnerHandle::Get()); |
| 417 if (accelerator && accelerator->IsSupported()) | 417 if (accelerator && accelerator->IsSupported()) |
| 418 return true; | 418 return true; |
| 419 } | 419 } |
| 420 return false; | 420 return false; |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace content | 423 } // namespace content |
| OLD | NEW |