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

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

Issue 27498002: Add vaapi_h264_decoder_test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add gfx_geometry dependency Created 6 years, 10 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_h264_decoder_unittest.cc ('k') | content/common/gpu/media/vaapi_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1c130fab7f7ab040cacb915ef24f69e684f5cb64..2628e437b6c71647dbf6ad76e4ca16a66062852a 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,17 @@ 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
+ // be released using the ReturnVaImage function. Returns true when successful.
+ // This is intended for testing only.
+ bool GetVaImageForTesting(VASurfaceID va_surface_id,
+ VAImage* image,
+ void** mem);
+
+ // Release the VAImage (and the associated memory mapping) obtained from
+ // GetVaImage(). This is intended for testing only.
+ void ReturnVaImageForTesting(VAImage* image);
+
private:
VaapiWrapper();
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder_unittest.cc ('k') | content/common/gpu/media/vaapi_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698