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 afb695487133751f82a0019fc02937a629812b68..e80eb6204aa08b6251b41005d7e859c16bd3845b 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, |
@@ -69,6 +71,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 initialized |external_jpeg_decoder_|. |
wuchengli
2015/05/13 15:04:06
Whether |external_jpeg_decoder_| has been initiali
kcwu
2015/05/25 18:20:35
Done.
|
+ bool initialized_external_jpeg_decoder_; |
wuchengli
2015/05/13 15:04:06
external_jpeg_decoder_initialized_
kcwu
2015/05/25 18:20:35
Done.
|
+ |
// The pool of shared-memory buffers used for capturing. |
const scoped_refptr<VideoCaptureBufferPool> buffer_pool_; |