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

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

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months 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 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.

Powered by Google App Engine
This is Rietveld 408576698