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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 1117423002: media: Let VideoFrame carry more than one native texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman's comments. Created 5 years, 7 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
Index: content/browser/renderer_host/media/video_capture_controller.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
index 56b281be9107e5ee12afb15c283091a2271dcd88..92b60cedb926bdb0ec38d8678d1149f74ff620ed 100644
--- a/content/browser/renderer_host/media/video_capture_controller.cc
+++ b/content/browser/renderer_host/media/video_capture_controller.cc
@@ -301,12 +301,10 @@ void VideoCaptureController::DoIncomingCapturedVideoFrameOnIOThread(
if (frame->format() == VideoFrame::NATIVE_TEXTURE) {
DCHECK(frame->coded_size() == frame->visible_rect().size())
<< "Textures are always supposed to be tightly packed.";
- client->event_handler->OnMailboxBufferReady(client->controller_id,
- buffer_id,
- *frame->mailbox_holder(),
- frame->coded_size(),
- timestamp,
- copy_of_metadata.Pass());
+ DCHECK_EQ(1u, VideoFrame::NumTextures(frame->texture_format()));
+ client->event_handler->OnMailboxBufferReady(
+ client->controller_id, buffer_id, frame->mailbox_holder(0),
+ frame->coded_size(), timestamp, copy_of_metadata.Pass());
} else if (frame->format() == media::VideoFrame::I420) {
bool is_new_buffer = client->known_buffers.insert(buffer_id).second;
if (is_new_buffer) {

Powered by Google App Engine
This is Rietveld 408576698