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

Unified Diff: content/common/gpu/media/vaapi_h264_decoder.cc

Issue 10909112: Hacks to make HW decode work on linux via libva. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a clarifying comment Created 8 years, 3 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
« no previous file with comments | « content/common/gpu/media/rendering_helper_gl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_h264_decoder.cc
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc
index 863ea28d68cdeb3c72698f52431902932670ff0b..d1a911d47daccc9bb1b8cc81f14c6523ccb9ee3b 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.cc
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc
@@ -274,6 +274,7 @@ VaapiH264Decoder::DecodeSurface::~DecodeSurface() {
if (x_pixmap_)
XFreePixmap(x_display_, x_pixmap_);
+ XSync(x_display_, False); // Needed to work around buggy vdpau-driver.
}
void VaapiH264Decoder::DecodeSurface::Acquire(int32 input_id, int poc) {
« no previous file with comments | « content/common/gpu/media/rendering_helper_gl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698