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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 49e9f04f4cee79bfb6ad721e51a813e5c74e9cb2..e8f57d42e1ff0b3704153e58c81cd3fc78fa2365 100644
--- a/content/common/gpu/media/vaapi_wrapper.h
+++ b/content/common/gpu/media/vaapi_wrapper.h
@@ -195,6 +195,9 @@ class CONTENT_EXPORT VaapiWrapper {
// Initialize static data before sandbox is enabled.
static void PreSandboxInitialization();
+ // Get the created surfaces format
+ unsigned int va_surface_format() { return va_surface_format_; }
+
private:
struct ProfileInfo {
VAProfile va_profile;
@@ -325,6 +328,9 @@ class CONTENT_EXPORT VaapiWrapper {
// Allocated ids for VASurfaces.
std::vector<VASurfaceID> va_surface_ids_;
+ // VA format of surfaces with va_surface_ids_.
+ unsigned int va_surface_format_;
+
// Singleton instance of VADisplayState.
static base::LazyInstance<VADisplayState> va_display_state_;

Powered by Google App Engine
This is Rietveld 408576698