| 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 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 14 #include "content/common/gpu/gpu_channel.h" | 15 #include "content/common/gpu/gpu_channel.h" |
| 15 #include "content/common/gpu/media/vaapi_picture.h" | 16 #include "content/common/gpu/media/vaapi_picture.h" |
| 16 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
| 17 #include "media/filters/jpeg_parser.h" | 18 #include "media/filters/jpeg_parser.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 decoder_task_runner_->PostTask( | 304 decoder_task_runner_->PostTask( |
| 304 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, | 305 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, |
| 305 base::Unretained(this), base::Passed(&request))); | 306 base::Unretained(this), base::Passed(&request))); |
| 306 } | 307 } |
| 307 | 308 |
| 308 bool VaapiJpegDecodeAccelerator::IsSupported() { | 309 bool VaapiJpegDecodeAccelerator::IsSupported() { |
| 309 return VaapiWrapper::IsJpegDecodeSupported(); | 310 return VaapiWrapper::IsJpegDecodeSupported(); |
| 310 } | 311 } |
| 311 | 312 |
| 312 } // namespace content | 313 } // namespace content |
| OLD | NEW |