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

Unified Diff: media/base/video_frame.h

Issue 806413004: Plumb allow_overlay flag for video path into cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index ca2a2e28e0e05ffbcca8166c6994075abe167754..cb4c8f042b35f5b3e691700724ecd67d40c8bc1a 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -292,6 +292,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// Returns the shared-memory handle, if present
base::SharedMemoryHandle shared_memory_handle() const;
+ void set_allow_overlay(bool allow_overlay) { allow_overlay_ = allow_overlay; }
+ bool allow_overlay() const { return allow_overlay_; }
+
#if defined(OS_POSIX)
// Returns backing dmabuf file descriptor for given |plane|, if present.
int dmabuf_fd(size_t plane) const;
@@ -403,6 +406,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const bool end_of_stream_;
+ bool allow_overlay_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
};

Powered by Google App Engine
This is Rietveld 408576698