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

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

Issue 1209033018: 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
Index: content/common/gpu/media/vaapi_wrapper.h
diff --git a/content/common/gpu/media/vaapi_wrapper.h b/content/common/gpu/media/vaapi_wrapper.h
index 8951702c1eb4a72cf9ecf742b9d5eb7be6b297c9..7be2b6eedbe38d3f5638289e0993776113180feb 100644
--- a/content/common/gpu/media/vaapi_wrapper.h
+++ b/content/common/gpu/media/vaapi_wrapper.h
@@ -77,14 +77,16 @@ class CONTENT_EXPORT VaapiWrapper {
~VaapiWrapper();
- // Create |num_surfaces| backing surfaces in driver for VASurfaces, each
- // of size |size|. Returns true when successful, with the created IDs in
- // |va_surfaces| to be managed and later wrapped in VASurfaces.
+ // Create |num_surfaces| backing surfaces in driver for VASurfaces of
+ // |va_format|, each of size |size|. Returns true when successful, with the
+ // created IDs in |va_surfaces| to be managed and later wrapped in
+ // VASurfaces.
// The client must DestroySurfaces() each time before calling this method
// again to free the allocated surfaces first, but is not required to do so
// at destruction time, as this will be done automatically from
// the destructor.
- bool CreateSurfaces(const gfx::Size& size,
+ bool CreateSurfaces(unsigned int va_format,
+ const gfx::Size& size,
size_t num_surfaces,
std::vector<VASurfaceID>* va_surfaces);
« no previous file with comments | « content/common/gpu/media/vaapi_video_encode_accelerator.cc ('k') | content/common/gpu/media/vaapi_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698