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 CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ | 10 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ |
11 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ | 11 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/geometry/size.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class VASurface; | 21 class VASurface; |
22 class VaapiWrapper; | 22 class VaapiWrapper; |
23 | 23 |
24 // Picture is native pixmap abstraction (X11/Ozone). | 24 // Picture is native pixmap abstraction (X11/Ozone). |
25 class VaapiPicture : public base::NonThreadSafe { | 25 class VaapiPicture : public base::NonThreadSafe { |
26 public: | 26 public: |
27 virtual ~VaapiPicture() {} | 27 virtual ~VaapiPicture() {} |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 int32 picture_buffer_id_; | 64 int32 picture_buffer_id_; |
65 uint32 texture_id_; | 65 uint32 texture_id_; |
66 gfx::Size size_; | 66 gfx::Size size_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(VaapiPicture); | 68 DISALLOW_COPY_AND_ASSIGN(VaapiPicture); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ | 73 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ |
OLD | NEW |