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/vaapi_jpeg_decode_accelerator.h" | 5 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string.h> | 8 #include <string.h> |
| 9 |
| 10 #include <memory> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
15 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
16 #include "content/common/gpu/media/shared_memory_region.h" | 18 #include "content/common/gpu/media/shared_memory_region.h" |
17 #include "content/common/gpu/media/vaapi_picture.h" | 19 #include "content/common/gpu/media/vaapi_picture.h" |
18 #include "gpu/ipc/service/gpu_channel.h" | 20 #include "gpu/ipc/service/gpu_channel.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 decoder_task_runner_->PostTask( | 315 decoder_task_runner_->PostTask( |
314 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, | 316 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, |
315 base::Unretained(this), base::Passed(&request))); | 317 base::Unretained(this), base::Passed(&request))); |
316 } | 318 } |
317 | 319 |
318 bool VaapiJpegDecodeAccelerator::IsSupported() { | 320 bool VaapiJpegDecodeAccelerator::IsSupported() { |
319 return VaapiWrapper::IsJpegDecodeSupported(); | 321 return VaapiWrapper::IsJpegDecodeSupported(); |
320 } | 322 } |
321 | 323 |
322 } // namespace content | 324 } // namespace content |
OLD | NEW |