| 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 CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ | 9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ |
| 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ | 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int32 picture_buffer_id, | 32 int32 picture_buffer_id, |
| 33 uint32 texture_id, | 33 uint32 texture_id, |
| 34 const gfx::Size& size); | 34 const gfx::Size& size); |
| 35 | 35 |
| 36 ~VaapiTFPPicture() override; | 36 ~VaapiTFPPicture() override; |
| 37 | 37 |
| 38 bool Initialize() override; | 38 bool Initialize() override; |
| 39 | 39 |
| 40 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override; | 40 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override; |
| 41 | 41 |
| 42 scoped_refptr<gfx::GLImage> GetImageToBind() override; |
| 43 |
| 42 private: | 44 private: |
| 43 VaapiWrapper* vaapi_wrapper_; // Not owned. | 45 VaapiWrapper* vaapi_wrapper_; // Not owned. |
| 44 | 46 |
| 45 base::Callback<bool(void)> make_context_current_; | 47 base::Callback<bool(void)> make_context_current_; |
| 46 Display* x_display_; | 48 Display* x_display_; |
| 47 | 49 |
| 48 Pixmap x_pixmap_; | 50 Pixmap x_pixmap_; |
| 49 scoped_refptr<gfx::GLImageGLX> glx_image_; | 51 scoped_refptr<gfx::GLImageGLX> glx_image_; |
| 50 | 52 |
| 51 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); | 53 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace content | 56 } // namespace content |
| 55 | 57 |
| 56 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ | 58 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ |
| OLD | NEW |