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

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

Issue 1090273006: Revert of VideoCapture: add support for GpuMemoryBuffer allocation and lifetime mgmt in VideoCaptureBufferPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index 0dd86842f6f91520b23b6671ec5ad8192f9f28d2..2954688bd8d8fa074949d27c97f076d8aa74e997 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -72,7 +72,8 @@
// instance. Some device clients need to allocate resources for the given
// capture |format| and/or work on Capture Thread (|capture_task_runner|).
scoped_ptr<media::VideoCaptureDevice::Client> NewDeviceClient(
- const scoped_refptr<base::SingleThreadTaskRunner>& capture_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& capture_task_runner,
+ const media::VideoCaptureFormat& format);
// Start video capturing and try to use the resolution specified in |params|.
// Buffers will be shared to the client as necessary. The client will continue
@@ -120,7 +121,7 @@
// Worker functions on IO thread. Called by the VideoCaptureDeviceClient.
void DoIncomingCapturedVideoFrameOnIOThread(
- scoped_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
+ const scoped_refptr<media::VideoCaptureDevice::Client::Buffer>& buffer,
const scoped_refptr<media::VideoFrame>& frame,
const base::TimeTicks& timestamp);
void DoErrorOnIOThread();

Powered by Google App Engine
This is Rietveld 408576698