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

Unified Diff: media/video/capture/mac/video_capture_device_qtkit_mac.mm

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Trim some trailing whitespace. Created 7 years, 10 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: media/video/capture/mac/video_capture_device_qtkit_mac.mm
diff --git a/media/video/capture/mac/video_capture_device_qtkit_mac.mm b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
index 3c405f4f6d9ae5b47e3f2c0aa70affefd871f056..dd102186ed204a7629222a617cbfe2bfdf20b7e4 100644
--- a/media/video/capture/mac/video_capture_device_qtkit_mac.mm
+++ b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
@@ -223,6 +223,9 @@
// but VideoCaptureController::OnIncomingCapturedFrame() requires
// it to do so. Plumbing things through is intrusive, for now
// just deliver an adjusted buffer.
+ // TODO(nick): This workaround could probably be eliminated by using
+ // VideoCaptureController::OnIncomingCapturedVideoFrame, which supports
+ // pitches.
UInt8* addressToPass = static_cast<UInt8*>(baseAddress);
size_t expectedBytesPerRow = frameWidth_ * 4;
if (bytesPerRow > expectedBytesPerRow) {

Powered by Google App Engine
This is Rietveld 408576698