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 |
| 9 #include <memory> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/memory/shared_memory.h" | 15 #include "base/memory/shared_memory.h" |
14 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
15 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
16 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
17 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 for (const auto& create_jda_function : create_jda_fps) { | 418 for (const auto& create_jda_function : create_jda_fps) { |
417 std::unique_ptr<media::JpegDecodeAccelerator> accelerator = | 419 std::unique_ptr<media::JpegDecodeAccelerator> accelerator = |
418 (*create_jda_function)(base::ThreadTaskRunnerHandle::Get()); | 420 (*create_jda_function)(base::ThreadTaskRunnerHandle::Get()); |
419 if (accelerator && accelerator->IsSupported()) | 421 if (accelerator && accelerator->IsSupported()) |
420 return true; | 422 return true; |
421 } | 423 } |
422 return false; | 424 return false; |
423 } | 425 } |
424 | 426 |
425 } // namespace content | 427 } // namespace content |
OLD | NEW |