| Index: content/common/gpu/media/vaapi_video_decode_accelerator.h
|
| diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.h b/content/common/gpu/media/vaapi_video_decode_accelerator.h
|
| index 9e98a6b7708c1c3839bc32ed28450b122d0eb3ca..0ef25c55e947ea7f1ddae56dea7416436b80c15e 100644
|
| --- a/content/common/gpu/media/vaapi_video_decode_accelerator.h
|
| +++ b/content/common/gpu/media/vaapi_video_decode_accelerator.h
|
| @@ -28,6 +28,10 @@
|
| #include "media/video/picture.h"
|
| #include "media/video/video_decode_accelerator.h"
|
|
|
| +namespace gfx {
|
| +class GLImage;
|
| +}
|
| +
|
| namespace content {
|
|
|
| class VaapiPicture;
|
| @@ -44,7 +48,9 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
|
| : public media::VideoDecodeAccelerator {
|
| public:
|
| VaapiVideoDecodeAccelerator(
|
| - const base::Callback<bool(void)>& make_context_current);
|
| + const base::Callback<bool(void)>& make_context_current,
|
| + const base::Callback<void(uint32, uint32, scoped_refptr<gfx::GLImage>)>&
|
| + bind_image);
|
| ~VaapiVideoDecodeAccelerator() override;
|
|
|
| // media::VideoDecodeAccelerator implementation.
|
| @@ -264,6 +270,10 @@ private:
|
| size_t requested_num_pics_;
|
| gfx::Size requested_pic_size_;
|
|
|
| + // Binds the provided GLImage to a givenr client texture ID & texture target
|
| + // combination in GLES.
|
| + base::Callback<void(uint32, uint32, scoped_refptr<gfx::GLImage>)> bind_image_;
|
| +
|
| // The WeakPtrFactory for |weak_this_|.
|
| base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_;
|
|
|
|
|