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

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

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes suggested by 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 | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index fae1cc7a2f635291f6cc657e026508bbc17b4ed0..27b820b1b458e7c80d46ad1ae2b2f69a8f9b771a 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -65,9 +65,10 @@ class CONTENT_EXPORT VideoCaptureController
int buffer_id);
// Implement media::VideoCaptureDevice::EventHandler.
- virtual void OnIncomingCapturedFrame(const uint8* data,
- int length,
+ virtual void OnIncomingCapturedFrame(const uint8* data, int length,
base::Time timestamp) OVERRIDE;
wjia(left Chromium) 2013/02/10 06:55:06 nit: For function declarations and definitions, pu
ncarter (slow) 2013/02/11 02:12:42 Done.
+ virtual void OnIncomingCapturedVideoFrame(media::VideoFrame* frame,
+ base::Time timestamp) OVERRIDE;
virtual void OnError() OVERRIDE;
virtual void OnFrameInfo(
const media::VideoCaptureCapability& info) OVERRIDE;
@@ -108,6 +109,12 @@ class CONTENT_EXPORT VideoCaptureController
void PostStopping();
// Check if any DIB is used by client.
bool ClientHasDIB();
+ // DIB allocator. Locate a free DIB object, reserve it, and return its id
+ // as well as pointers to its color planes. Returns true if successful.
+ bool ReserveSharedMemory(int* buffer_id_out,
+ uint8** yplane,
+ uint8** uplane,
+ uint8** vplane);
// Lock to protect free_dibs_ and owned_dibs_.
base::Lock lock_;
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698