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..1ea0b7a4f9fa0f2940a38c71ec626e36a7fca9ce 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,13 @@ class CONTENT_EXPORT VaapiWrapper { |
// Returns true if the VAAPI version is less than the specified version. |
bool VAAPIVersionLessThan(int major, int minor); |
+ // Get the surface data and return it as a VideoFrame. The VideoFrame |
+ // contains I420 formatted data. Currently it only handles VASurface with |
+ // NV12 format. This is inteded to be used for testing code only because it |
+ // makes a copy. |
+ scoped_refptr<media::VideoFrame> VideoFrameFromVASurface( |
+ VASurfaceID va_surface_id); |
+ |
private: |
VaapiWrapper(); |