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 a12bb63b792407091431aeb93a852bef6d902ac8..520228cbc1e2f5daa73fa03202c516189f4d4ba5 100644 |
--- a/content/common/gpu/media/vaapi_video_encode_accelerator.h |
+++ b/content/common/gpu/media/vaapi_video_encode_accelerator.h |
@@ -25,7 +25,7 @@ |
class CONTENT_EXPORT VaapiVideoEncodeAccelerator |
: public media::VideoEncodeAccelerator { |
public: |
- VaapiVideoEncodeAccelerator(); |
+ explicit VaapiVideoEncodeAccelerator(Display* x_display); |
virtual ~VaapiVideoEncodeAccelerator(); |
// media::VideoEncodeAccelerator implementation. |
@@ -151,7 +151,7 @@ |
// VaapiWrapper is the owner of all HW resources (surfaces and buffers) |
// and will free them on destruction. |
- scoped_refptr<VaapiWrapper> vaapi_wrapper_; |
+ scoped_ptr<VaapiWrapper> vaapi_wrapper_; |
// Input profile and sizes. |
media::VideoCodecProfile profile_; |
@@ -177,6 +177,8 @@ |
// Size in bytes required for input bitstream buffers. |
size_t output_buffer_byte_size_; |
+ |
+ Display* x_display_; |
// All of the members below must be accessed on the encoder_thread_, |
// while it is running. |