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

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

Issue 1239443003: Revert of Create VA surface with correct VA RT format for MJPEG decode acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/vaapi_wrapper.h ('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_wrapper.cc
diff --git a/content/common/gpu/media/vaapi_wrapper.cc b/content/common/gpu/media/vaapi_wrapper.cc
index 84917c8daf4b3dd5b049361034cda8cbd5098245..f2d21e5fa32c91d2ead3997c12e2b14f5989e2cc 100644
--- a/content/common/gpu/media/vaapi_wrapper.cc
+++ b/content/common/gpu/media/vaapi_wrapper.cc
@@ -495,8 +495,7 @@
va_display_ = NULL;
}
-bool VaapiWrapper::CreateSurfaces(unsigned int va_format,
- const gfx::Size& size,
+bool VaapiWrapper::CreateSurfaces(const gfx::Size& size,
size_t num_surfaces,
std::vector<VASurfaceID>* va_surfaces) {
base::AutoLock auto_lock(*va_lock_);
@@ -507,9 +506,12 @@
va_surface_ids_.resize(num_surfaces);
// Allocate surfaces in driver.
- VAStatus va_res =
- vaCreateSurfaces(va_display_, va_format, size.width(), size.height(),
- &va_surface_ids_[0], va_surface_ids_.size(), NULL, 0);
+ VAStatus va_res = vaCreateSurfaces(va_display_,
+ VA_RT_FORMAT_YUV420,
+ size.width(), size.height(),
+ &va_surface_ids_[0],
+ va_surface_ids_.size(),
+ NULL, 0);
VA_LOG_ON_ERROR(va_res, "vaCreateSurfaces failed");
if (va_res != VA_STATUS_SUCCESS) {
« no previous file with comments | « content/common/gpu/media/vaapi_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698