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

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

Issue 1016773002: MJPEG acceleration for video capture using VAAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix coded size, shm handle Created 5 years, 9 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_buffer_pool.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index f583a94adaa638396431ecda7017aa787d99aaa2..900240b61901173934781ebc96875b13aef1334d 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -168,4 +168,12 @@ VideoCaptureBufferPool::Buffer* VideoCaptureBufferPool::GetBuffer(
return it->second;
}
+base::SharedMemoryHandle VideoCaptureBufferPool::GetBufferSharedMemory(
+ int buffer_id) {
wuchengli 2015/03/23 06:30:14 Need to acquire |lock_|. Or how about merging thi
mcasas 2015/03/23 19:29:50 For another purpose I'm about to start adding a V
kcwu 2015/03/30 18:12:14 Did you mean VideoCaptureDevice::Client::Buffer::G
kcwu 2015/03/30 18:12:14 Done.
+ BufferMap::iterator it = buffers_.find(buffer_id);
+ if (it == buffers_.end())
+ return base::SharedMemory::NULLHandle();
+ return it->second->shared_memory.handle();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698