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

Unified Diff: media/capture/video/video_capture_buffer_tracker.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_buffer_pool_impl.cc ('k') | media/capture/video/video_capture_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/video_capture_buffer_tracker.h
diff --git a/media/capture/video/video_capture_buffer_tracker.h b/media/capture/video/video_capture_buffer_tracker.h
index 776f33ff50b5c5c2264ed3fa9f88b848f313a0a7..3e3d7bf888a2ff37aacdd53963c80476ea1f3c98 100644
--- a/media/capture/video/video_capture_buffer_tracker.h
+++ b/media/capture/video/video_capture_buffer_tracker.h
@@ -23,7 +23,8 @@ class CAPTURE_EXPORT VideoCaptureBufferTracker {
VideoCaptureBufferTracker()
: max_pixel_count_(0),
held_by_producer_(false),
- consumer_hold_count_(0) {}
+ consumer_hold_count_(0),
+ frame_feedback_id_(0) {}
virtual bool Init(const gfx::Size& dimensions,
media::VideoPixelFormat format,
media::VideoPixelStorage storage_type,
@@ -46,6 +47,8 @@ class CAPTURE_EXPORT VideoCaptureBufferTracker {
void set_held_by_producer(bool value) { held_by_producer_ = value; }
int consumer_hold_count() const { return consumer_hold_count_; }
void set_consumer_hold_count(int value) { consumer_hold_count_ = value; }
+ void set_frame_feedback_id(int value) { frame_feedback_id_ = value; }
+ int frame_feedback_id() { return frame_feedback_id_; }
// Returns a scoped handle to the underlying storage.
virtual std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle() = 0;
@@ -67,6 +70,8 @@ class CAPTURE_EXPORT VideoCaptureBufferTracker {
// Number of consumer processes which hold this VideoCaptureBufferTracker.
int consumer_hold_count_;
+
+ int frame_feedback_id_;
};
} // namespace content
« no previous file with comments | « media/capture/video/video_capture_buffer_pool_impl.cc ('k') | media/capture/video/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698