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

Unified Diff: media/base/video_frame.cc

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 | « media/base/video_frame.h ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 32c203ceadb8b0bf67c368899a21129b28507517..11bc284c703ff10ee08e36d485e738c2eae4ae28 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -248,7 +248,8 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture(
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) {
scoped_refptr<VideoFrame> frame(new VideoFrame(NATIVE_TEXTURE,
coded_size,
visible_rect,
@@ -258,6 +259,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture(
false));
frame->mailbox_holder_release_cb_ = mailbox_holder_release_cb;
frame->read_pixels_cb_ = read_pixels_cb;
+ frame->allow_overlay_ = allow_overlay;
return frame;
}
@@ -678,7 +680,8 @@ VideoFrame::VideoFrame(VideoFrame::Format format,
shared_memory_handle_(base::SharedMemory::NULLHandle()),
timestamp_(timestamp),
release_sync_point_(0),
- end_of_stream_(end_of_stream) {
+ end_of_stream_(end_of_stream),
+ allow_overlay_(false) {
DCHECK(IsValidConfig(format_, coded_size_, visible_rect_, natural_size_));
memset(&strides_, 0, sizeof(strides_));
« no previous file with comments | « media/base/video_frame.h ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698