| 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 // X11 window system used by VaapiVideoDecodeAccelerator to produce | 6 // X11 window system used by VaapiVideoDecodeAccelerator to produce |
| 7 // output pictures. | 7 // output pictures. |
| 8 | 8 |
| 9 #ifndef MEDIA_GPU_VAAPI_TFP_PICTURE_H_ | 9 #ifndef MEDIA_GPU_VAAPI_TFP_PICTURE_H_ |
| 10 #define MEDIA_GPU_VAAPI_TFP_PICTURE_H_ | 10 #define MEDIA_GPU_VAAPI_TFP_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 "media/gpu/vaapi_picture.h" | 16 #include "media/gpu/vaapi_picture.h" |
| 17 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
| 18 #include "ui/gl/gl_bindings.h" | 18 #include "ui/gl/gl_bindings.h" |
| 19 | 19 |
| 20 namespace gfx { | |
| 21 class GLContextGLX; | |
| 22 } | |
| 23 | |
| 24 namespace gl { | 20 namespace gl { |
| 25 class GLImageGLX; | 21 class GLImageGLX; |
| 26 } | 22 } |
| 27 | 23 |
| 28 namespace media { | 24 namespace media { |
| 29 | 25 |
| 30 class VaapiWrapper; | 26 class VaapiWrapper; |
| 31 | 27 |
| 32 // Implementation of VaapiPicture for the X11 backed chromium. | 28 // Implementation of VaapiPicture for the X11 backed chromium. |
| 33 class VaapiTFPPicture : public VaapiPicture { | 29 class VaapiTFPPicture : public VaapiPicture { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 56 | 52 |
| 57 Pixmap x_pixmap_; | 53 Pixmap x_pixmap_; |
| 58 scoped_refptr<gl::GLImageGLX> glx_image_; | 54 scoped_refptr<gl::GLImageGLX> glx_image_; |
| 59 | 55 |
| 60 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); | 56 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); |
| 61 }; | 57 }; |
| 62 | 58 |
| 63 } // namespace media | 59 } // namespace media |
| 64 | 60 |
| 65 #endif // MEDIA_GPU_VAAPI_TFP_PICTURE_H_ | 61 #endif // MEDIA_GPU_VAAPI_TFP_PICTURE_H_ |
| OLD | NEW |