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

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

Issue 1132683004: MJPEG acceleration for video capture, browser part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mjpeg-2-gpu
Patch Set: fix gpu channel establish Created 5 years, 6 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_device_client.h
diff --git a/content/browser/renderer_host/media/video_capture_device_client.h b/content/browser/renderer_host/media/video_capture_device_client.h
index e203e94ce09bb3c088001bd5bc2959e545f540b2..f9265f299e1c65e054c6a0f2c3621a26325be70b 100644
--- a/content/browser/renderer_host/media/video_capture_device_client.h
+++ b/content/browser/renderer_host/media/video_capture_device_client.h
@@ -12,6 +12,7 @@
#include "media/video/capture/video_capture_device.h"
namespace content {
+class GpuJpegDecoder;
class VideoCaptureBufferPool;
class VideoCaptureController;
@@ -30,7 +31,8 @@ class VideoCaptureController;
// manages the necessary entities to interact with the GPU process, notably an
// offscreen Context to avoid janking the UI thread.
class CONTENT_EXPORT VideoCaptureDeviceClient
- : public media::VideoCaptureDevice::Client {
+ : public media::VideoCaptureDevice::Client,
+ public base::SupportsWeakPtr<VideoCaptureDeviceClient> {
public:
VideoCaptureDeviceClient(
const base::WeakPtr<VideoCaptureController>& controller,
@@ -70,6 +72,12 @@ class CONTENT_EXPORT VideoCaptureDeviceClient
// The controller to which we post events.
const base::WeakPtr<VideoCaptureController> controller_;
+ // Hardware JPEG decoder.
+ scoped_ptr<GpuJpegDecoder> external_jpeg_decoder_;
+
+ // Whether |external_jpeg_decoder_| has been initialized.
+ bool external_jpeg_decoder_initialized_;
+
// The pool of shared-memory buffers used for capturing.
const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;

Powered by Google App Engine
This is Rietveld 408576698