OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file contains an implementation of picture allocation for the | 5 // This file contains an implementation of picture allocation for the |
6 // Ozone window system used by VaapiVideoDecodeAccelerator to produce | 6 // Ozone window system used by VaapiVideoDecodeAccelerator to produce |
7 // output pictures. | 7 // output pictures. |
8 | 8 |
9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ | 9 #ifndef MEDIA_GPU_VAAPI_DRM_PICTURE_H_ |
10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ | 10 #define MEDIA_GPU_VAAPI_DRM_PICTURE_H_ |
11 | 11 |
12 #include <stdint.h> | 12 #include <stdint.h> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "content/common/gpu/media/vaapi_picture.h" | 17 #include "media/gpu/vaapi_picture.h" |
18 #include "ui/gfx/buffer_types.h" | 18 #include "ui/gfx/buffer_types.h" |
19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
20 | 20 |
21 namespace gl { | 21 namespace gl { |
22 class GLImage; | 22 class GLImage; |
23 } | 23 } |
24 | 24 |
25 namespace ui { | 25 namespace ui { |
26 class NativePixmap; | 26 class NativePixmap; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace media { |
30 | 30 |
31 class VaapiWrapper; | 31 class VaapiWrapper; |
32 | 32 |
33 // Implementation of VaapiPicture for the ozone/drm backed chromium. | 33 // Implementation of VaapiPicture for the ozone/drm backed chromium. |
34 class VaapiDrmPicture : public VaapiPicture { | 34 class VaapiDrmPicture : public VaapiPicture { |
35 public: | 35 public: |
36 VaapiDrmPicture(const scoped_refptr<VaapiWrapper>& vaapi_wrapper, | 36 VaapiDrmPicture(const scoped_refptr<VaapiWrapper>& vaapi_wrapper, |
37 const MakeGLContextCurrentCallback& make_context_current_cb, | 37 const MakeGLContextCurrentCallback& make_context_current_cb, |
38 int32_t picture_buffer_id, | 38 int32_t picture_buffer_id, |
39 uint32_t texture_id, | 39 uint32_t texture_id, |
(...skipping 18 matching lines...) Expand all Loading... |
58 | 58 |
59 // EGLImage bound to the GL textures used by the VDA client. | 59 // EGLImage bound to the GL textures used by the VDA client. |
60 scoped_refptr<gl::GLImage> gl_image_; | 60 scoped_refptr<gl::GLImage> gl_image_; |
61 | 61 |
62 // VASurface used to transfer from the decoder's pixel format. | 62 // VASurface used to transfer from the decoder's pixel format. |
63 scoped_refptr<VASurface> va_surface_; | 63 scoped_refptr<VASurface> va_surface_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture); | 65 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace media |
69 | 69 |
70 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ | 70 #endif // MEDIA_GPU_VAAPI_DRM_PICTURE_H_ |
OLD | NEW |