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

Unified Diff: media/base/video_frame_metadata.h

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: rebased Created 4 years 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: media/base/video_frame_metadata.h
diff --git a/media/base/video_frame_metadata.h b/media/base/video_frame_metadata.h
index 23b40ac3dfd712bd3636f709c0955911f72d86fd..b1134a941e7b838a78816b4d6d43afe8d329d540 100644
--- a/media/base/video_frame_metadata.h
+++ b/media/base/video_frame_metadata.h
@@ -110,6 +110,16 @@ class MEDIA_EXPORT VideoFrameMetadata {
// Indicates that the frame is rotated.
ROTATION,
+ // Android only: if set, then this frame is not suitable for overlay, even
+ // if ALLOW_OVERLAY is set. However, it allows us to process the overlay
+ // to see if it would have been promoted, if it were backed by a SurfaceView
+ // instead. This lets us figure out when SurfaceViews are appropriate.
+ SURFACE_TEXTURE,
+
+ // Android only: if set, then this frame's resource would like to be
+ // notified about its promotability to an overlay.
+ WANTS_PROMOTION_HINT,
+
NUM_KEYS
};
« no previous file with comments | « components/display_compositor/compositor_overlay_candidate_validator_android.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698