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

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..036bee4f61d7c05ab8c02749fe8d8343eb3f478c 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() const { 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_;
« no previous file with comments | « content/common/gpu/media/vaapi_video_encode_accelerator.cc ('k') | content/common/gpu/media/vaapi_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698