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

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

Issue 43283002: Enable GLX/EGL backend switching while run HW video decode with libva. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Refined based on Fischman's comments. Created 7 years, 2 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_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 1755b98f3d5e37749b36bd36ee5f2b84644c118d..a5b796924f8753e32141fd846f7cd4b170d103c3 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.h
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.h
@@ -48,6 +48,10 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
Display* x_display, GLXContext glx_context,
Client* client,
const base::Callback<bool(void)>& make_context_current);
+ VaapiVideoDecodeAccelerator(
+ EGLDisplay egl_display, EGLContext egl_context,
+ Client* client,
+ const base::Callback<bool(void)>& make_context_current);
virtual ~VaapiVideoDecodeAccelerator();
// media::VideoDecodeAccelerator implementation.
@@ -153,6 +157,8 @@ private:
// Client-provided X/GLX state.
Display* x_display_;
+ EGLDisplay egl_display_;
+ EGLContext egl_context_;
GLXContext glx_context_;
base::Callback<bool(void)> make_context_current_;
GLXFBConfig fb_config_;

Powered by Google App Engine
This is Rietveld 408576698