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

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: missed v4l2 Created 5 years, 11 months 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
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 0ffd0585cdb20d434760d8e6d654f753b1c4e9db..a5995be5cbe53056a31ab16405a10d1bf2f036e3 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -113,7 +113,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
base::TimeDelta timestamp,
- const ReadPixelsCB& read_pixels_cb);
+ const ReadPixelsCB& read_pixels_cb,
+ bool allow_overlay);
#if !defined(MEDIA_FOR_CAST_IOS)
// Read pixels from the native texture backing |*this| and write
@@ -298,6 +299,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// Returns the shared-memory handle, if present
base::SharedMemoryHandle shared_memory_handle() const;
+ 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;
@@ -409,6 +412,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const bool end_of_stream_;
+ bool allow_overlay_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
};
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698