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

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

Issue 2518143004: [Mojo Video Capture] Replace RESOURCE_UTILIZATION with interface ReceiverLoadObserver (Closed)
Patch Set: Fix for android-only code Created 4 years 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 | « media/capture/video/video_capture_device.h ('k') | media/capture/video/video_capture_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9a36f9d5425e58ae8c594ed103eb7633fdd56760..0c8553984dcbc2844d83d1a5b9bb4bfda3e72328 100644
--- a/media/capture/video/video_capture_device_client.h
+++ b/media/capture/video/video_capture_device_client.h
@@ -55,13 +55,14 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
const media::VideoCaptureFormat& frame_format,
int rotation,
base::TimeTicks reference_time,
- base::TimeDelta timestamp) override;
- std::unique_ptr<Buffer> ReserveOutputBuffer(
- const gfx::Size& dimensions,
- media::VideoPixelFormat format,
- media::VideoPixelStorage storage) override;
+ base::TimeDelta timestamp,
+ int frame_feedback_id = 0) override;
+ std::unique_ptr<Buffer> ReserveOutputBuffer(const gfx::Size& dimensions,
+ media::VideoPixelFormat format,
+ media::VideoPixelStorage storage,
+ int frame_feedback_id) override;
void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer,
- const media::VideoCaptureFormat& frame_format,
+ const VideoCaptureFormat& format,
base::TimeTicks reference_time,
base::TimeDelta timestamp) override;
void OnIncomingCapturedVideoFrame(
@@ -70,7 +71,8 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
const gfx::Size& dimensions,
media::VideoPixelFormat format,
- media::VideoPixelStorage storage) override;
+ media::VideoPixelStorage storage,
+ int new_frame_feedback_id) override;
void OnError(const tracked_objects::Location& from_here,
const std::string& reason) override;
void OnLog(const std::string& message) override;
@@ -90,6 +92,7 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
std::unique_ptr<Buffer> ReserveI420OutputBuffer(
const gfx::Size& dimensions,
media::VideoPixelStorage storage,
+ int frame_feedback_id,
uint8_t** y_plane_data,
uint8_t** u_plane_data,
uint8_t** v_plane_data);
@@ -99,7 +102,8 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
int length,
const VideoCaptureFormat& frame_format,
base::TimeTicks reference_time,
- base::TimeDelta timestamp);
+ base::TimeDelta timestamp,
+ int frame_feedback_id);
// The receiver to which we post events.
const std::unique_ptr<VideoFrameReceiver> receiver_;
« no previous file with comments | « media/capture/video/video_capture_device.h ('k') | media/capture/video/video_capture_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698