OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
| 17 #include "content/common/gpu/gpu_channel.h" |
17 #include "content/common/gpu/media/accelerated_video_decoder.h" | 18 #include "content/common/gpu/media/accelerated_video_decoder.h" |
18 #include "content/common/gpu/media/h264_decoder.h" | 19 #include "content/common/gpu/media/h264_decoder.h" |
19 #include "content/common/gpu/media/vaapi_picture.h" | 20 #include "content/common/gpu/media/vaapi_picture.h" |
20 #include "content/common/gpu/media/vp8_decoder.h" | 21 #include "content/common/gpu/media/vp8_decoder.h" |
21 #include "content/common/gpu/media/vp9_decoder.h" | 22 #include "content/common/gpu/media/vp9_decoder.h" |
22 #include "gpu/ipc/service/gpu_channel.h" | |
23 #include "media/base/bind_to_current_loop.h" | 23 #include "media/base/bind_to_current_loop.h" |
24 #include "media/video/picture.h" | 24 #include "media/video/picture.h" |
25 #include "third_party/libva/va/va_dec_vp8.h" | 25 #include "third_party/libva/va/va_dec_vp8.h" |
26 #include "ui/gl/gl_bindings.h" | 26 #include "ui/gl/gl_bindings.h" |
27 #include "ui/gl/gl_image.h" | 27 #include "ui/gl/gl_image.h" |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 namespace { | 31 namespace { |
32 // UMA errors that the VaapiVideoDecodeAccelerator class reports. | 32 // UMA errors that the VaapiVideoDecodeAccelerator class reports. |
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 return vaapi_pic->dec_surface(); | 1747 return vaapi_pic->dec_surface(); |
1748 } | 1748 } |
1749 | 1749 |
1750 // static | 1750 // static |
1751 media::VideoDecodeAccelerator::SupportedProfiles | 1751 media::VideoDecodeAccelerator::SupportedProfiles |
1752 VaapiVideoDecodeAccelerator::GetSupportedProfiles() { | 1752 VaapiVideoDecodeAccelerator::GetSupportedProfiles() { |
1753 return VaapiWrapper::GetSupportedDecodeProfiles(); | 1753 return VaapiWrapper::GetSupportedDecodeProfiles(); |
1754 } | 1754 } |
1755 | 1755 |
1756 } // namespace content | 1756 } // namespace content |
OLD | NEW |