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 aa277fd3860a86d9a4dbbb594e26f52033592018..82bae94f8539f4d786ec3474bff05f1b12bed6ee 100644 |
--- a/content/common/gpu/media/vaapi_wrapper.h |
+++ b/content/common/gpu/media/vaapi_wrapper.h |
@@ -81,6 +81,9 @@ class CONTENT_EXPORT VaapiWrapper { |
// Do any necessary initialization before the sandbox is enabled. |
static void PreSandboxInitialization(); |
+ // Returns true if the VAAPI version is less than the specified version. |
+ bool VAAPIVersionLessThan(int major, int minor); |
+ |
private: |
VaapiWrapper(); |
@@ -106,6 +109,9 @@ class CONTENT_EXPORT VaapiWrapper { |
// Allocated ids for VASurfaces. |
std::vector<VASurfaceID> va_surface_ids_; |
+ // The VAAPI version. |
+ int major_version_, minor_version_; |
+ |
// VA handles. |
// Both valid after successful Initialize() and until Deinitialize(). |
VADisplay va_display_; |