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 850bebdea384352b1f1fb2474145a0c09628bce7..560190bc9c3babb27385ef2a856c7e9c4a3c5276 100644 |
--- a/content/common/gpu/media/vaapi_wrapper.h |
+++ b/content/common/gpu/media/vaapi_wrapper.h |
@@ -15,6 +15,7 @@ |
#include "content/common/content_export.h" |
#include "content/common/gpu/media/va_surface.h" |
#include "media/base/video_decoder_config.h" |
+#include "media/base/video_frame.h" |
#include "third_party/libva/va/va.h" |
#include "third_party/libva/va/va_x11.h" |
#include "ui/gfx/size.h" |
@@ -81,6 +82,14 @@ class CONTENT_EXPORT VaapiWrapper { |
// Returns true if the VAAPI version is less than the specified version. |
bool VAAPIVersionLessThan(int major, int minor); |
+ // Get a VAImage from a VASurface and map it into memory. The VAImage should |
Ami GONE FROM CHROMIUM
2013/12/03 21:17:16
If these APIs are only used for testing they shoul
chihchung
2013/12/04 05:38:10
Done.
|
+ // be released using the ReturnVaImage function. Returns true when successful. |
+ bool GetVaImage(VASurfaceID va_surface_id, VAImage* image, void** mem); |
+ |
+ // Release the VAImage (and the associated memory mapping) obtained from |
+ // GetVaImage(). |
+ void ReturnVaImage(VAImage* image); |
+ |
private: |
VaapiWrapper(); |