Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: content/common/gpu/media/vaapi_video_encode_accelerator.h

Issue 804353003: Revert of Refactor Vaapi video decoder/encoder in preparation of Freon support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | content/common/gpu/media/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698