| 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 CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ |
| 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ | 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "content/common/gpu/media/vaapi_picture.h" | 14 #include "content/common/gpu/media/vaapi_picture.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class GLImageLinuxDMABuffer; | 18 class GLImage; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace ui { | 21 namespace ui { |
| 22 class NativePixmap; | 22 class NativePixmap; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 class VaapiWrapper; | 27 class VaapiWrapper; |
| 28 | 28 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 46 bool AllowOverlay() const override; | 46 bool AllowOverlay() const override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 VaapiWrapper* vaapi_wrapper_; // Not owned. | 49 VaapiWrapper* vaapi_wrapper_; // Not owned. |
| 50 base::Callback<bool(void)> make_context_current_; | 50 base::Callback<bool(void)> make_context_current_; |
| 51 | 51 |
| 52 // Ozone buffer, the storage of the EGLImage and the VASurface. | 52 // Ozone buffer, the storage of the EGLImage and the VASurface. |
| 53 scoped_refptr<ui::NativePixmap> pixmap_; | 53 scoped_refptr<ui::NativePixmap> pixmap_; |
| 54 | 54 |
| 55 // EGLImage bound to the GL textures used by the VDA client. | 55 // EGLImage bound to the GL textures used by the VDA client. |
| 56 scoped_refptr<gfx::GLImageLinuxDMABuffer> gl_image_; | 56 scoped_refptr<gfx::GLImage> gl_image_; |
| 57 | 57 |
| 58 // VASurface used to transfer from the decoder's pixel format. | 58 // VASurface used to transfer from the decoder's pixel format. |
| 59 scoped_refptr<VASurface> va_surface_; | 59 scoped_refptr<VASurface> va_surface_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture); | 61 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace content | 64 } // namespace content |
| 65 | 65 |
| 66 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ | 66 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ |
| OLD | NEW |