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 interface of output pictures for the Vaapi | 5 // This file contains an interface of output pictures for the Vaapi |
6 // video decoder. This is implemented by different window system | 6 // video decoder. This is implemented by different window system |
7 // (X11/Ozone) and used by VaapiVideoDecodeAccelerator to produce | 7 // (X11/Ozone) and used by VaapiVideoDecodeAccelerator to produce |
8 // output pictures. | 8 // output pictures. |
9 | 9 |
10 #ifndef MEDIA_GPU_VAAPI_PICTURE_H_ | 10 #ifndef MEDIA_GPU_VAAPI_PICTURE_H_ |
11 #define MEDIA_GPU_VAAPI_PICTURE_H_ | 11 #define MEDIA_GPU_VAAPI_PICTURE_H_ |
12 | 12 |
13 #include <stdint.h> | 13 #include <stdint.h> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
19 #include "media/gpu/gpu_video_decode_accelerator_helpers.h" | 19 #include "media/gpu/gpu_video_decode_accelerator_helpers.h" |
20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 #include "ui/gfx/gpu_memory_buffer.h" | 21 #include "ui/gfx/gpu_memory_buffer.h" |
22 | 22 |
23 namespace gl { | |
24 class GLImage; | |
25 } | |
26 | |
27 namespace media { | 23 namespace media { |
28 | 24 |
29 class VASurface; | 25 class VASurface; |
30 class VaapiWrapper; | 26 class VaapiWrapper; |
31 | 27 |
32 // Picture is native pixmap abstraction (X11/Ozone). | 28 // Picture is native pixmap abstraction (X11/Ozone). |
33 class VaapiPicture : public base::NonThreadSafe { | 29 class VaapiPicture : public base::NonThreadSafe { |
34 public: | 30 public: |
35 // Create a VaapiPicture of |size| to be associated with |picture_buffer_id|. | 31 // Create a VaapiPicture of |size| to be associated with |picture_buffer_id|. |
36 // If provided, bind it to |texture_id|, as well as to |client_texture_id| | 32 // If provided, bind it to |texture_id|, as well as to |client_texture_id| |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 86 |
91 private: | 87 private: |
92 int32_t picture_buffer_id_; | 88 int32_t picture_buffer_id_; |
93 | 89 |
94 DISALLOW_COPY_AND_ASSIGN(VaapiPicture); | 90 DISALLOW_COPY_AND_ASSIGN(VaapiPicture); |
95 }; | 91 }; |
96 | 92 |
97 } // namespace media | 93 } // namespace media |
98 | 94 |
99 #endif // MEDIA_GPU_VAAPI_PICTURE_H_ | 95 #endif // MEDIA_GPU_VAAPI_PICTURE_H_ |
OLD | NEW |