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

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: Style fix per wjia 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
« no previous file with comments | « media/base/video_util.cc ('k') | media/video/capture/screen/screen_capture_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ddc2790edde958a19450523e05966b473f597b70..0dcec7778466f56a44015479e92f9fbb912962aa 100644
--- a/media/video/capture/mac/video_capture_device_qtkit_mac.mm
+++ b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
@@ -230,6 +230,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) {
« no previous file with comments | « media/base/video_util.cc ('k') | media/video/capture/screen/screen_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698