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

Unified Diff: media/capture/video/video_capture_device_client.h

Issue 2735083002: [Mojo Video Capture] Add test coverage for accelerated jpeg decoding (Closed)
Patch Set: Created 3 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: media/capture/video/video_capture_device_client.h
diff --git a/media/capture/video/video_capture_device_client.h b/media/capture/video/video_capture_device_client.h
index a1b298fe81e02769cc1d70f644823b6d7f80f6a1..875b27b58c0ce54ba09b6296167a47f0d53e8e91 100644
--- a/media/capture/video/video_capture_device_client.h
+++ b/media/capture/video/video_capture_device_client.h
@@ -85,6 +85,9 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
double GetBufferPoolUtilization() const override;
private:
+ void OnUsingExternalJpegDecoder();
+ void OnNotUsingExternalJpegDecoder();
+
void InitializeI420PlanePointers(const gfx::Size& dimensions,
uint8_t* const data,
uint8_t** y_plane_data,
@@ -108,6 +111,7 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
// Whether |external_jpeg_decoder_| has been initialized.
bool external_jpeg_decoder_initialized_;
+ bool using_external_jpeg_decoder_;
mcasas 2017/03/07 19:39:38 Isn't this variable having the same lifetime chang
chfremer 2017/03/07 22:30:38 The |external_jpeg_decoder_| is created and initia
// The pool of shared-memory buffers used for capturing.
const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;

Powered by Google App Engine
This is Rietveld 408576698