| Index: content/common/gpu/media/vaapi_video_encode_accelerator.h
|
| diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.h b/content/common/gpu/media/vaapi_video_encode_accelerator.h
|
| index 8a7811a3ec7808fcf3c352550b717591280823f6..7f437f581fd2cb6ae3e2216b2a0715423e907c9d 100644
|
| --- a/content/common/gpu/media/vaapi_video_encode_accelerator.h
|
| +++ b/content/common/gpu/media/vaapi_video_encode_accelerator.h
|
| @@ -17,6 +17,10 @@
|
| #include "media/filters/h264_bitstream_buffer.h"
|
| #include "media/video/video_encode_accelerator.h"
|
|
|
| +namespace gfx {
|
| +class GLContext;
|
| +}; // namespace gfx
|
| +
|
| namespace content {
|
|
|
| // A VideoEncodeAccelerator implementation that uses VA-API
|
| @@ -25,7 +29,9 @@ namespace content {
|
| class CONTENT_EXPORT VaapiVideoEncodeAccelerator
|
| : public media::VideoEncodeAccelerator {
|
| public:
|
| - explicit VaapiVideoEncodeAccelerator(Display* x_display);
|
| + explicit VaapiVideoEncodeAccelerator(
|
| + gfx::GLContext* gl_context,
|
| + const base::Callback<bool(void)>& make_context_current);
|
| virtual ~VaapiVideoEncodeAccelerator();
|
|
|
| // media::VideoEncodeAccelerator implementation.
|
| @@ -179,7 +185,9 @@ class CONTENT_EXPORT VaapiVideoEncodeAccelerator
|
| // Size in bytes required for input bitstream buffers.
|
| size_t output_buffer_byte_size_;
|
|
|
| - Display* x_display_;
|
| + base::Callback<bool(void)> make_context_current_;
|
| +
|
| + gfx::GLContext* gl_context_;
|
|
|
| // All of the members below must be accessed on the encoder_thread_,
|
| // while it is running.
|
|
|