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

Unified Diff: media/capture/video/linux/v4l2_capture_delegate.h

Issue 1418263006: Extend VideoCaptureDevice::Client::OnError() to have a tracked_objects::Location param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/linux/v4l2_capture_delegate.h
diff --git a/media/capture/video/linux/v4l2_capture_delegate.h b/media/capture/video/linux/v4l2_capture_delegate.h
index 1bb1735944ae25fdd9244625bf92caccc74582d4..28cec8201b8afbf9d92a3aa9edc85ef336e12c48 100644
--- a/media/capture/video/linux/v4l2_capture_delegate.h
+++ b/media/capture/video/linux/v4l2_capture_delegate.h
@@ -15,6 +15,10 @@
#include "base/memory/ref_counted.h"
#include "media/capture/video/video_capture_device.h"
+namespace tracked_objects {
+class Location;
+} // namespace tracked_objects
+
namespace media {
// Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE
@@ -137,7 +141,8 @@ class V4L2CaptureDelegate
// for filling in the planar-dependent parts.
void FillV4L2Buffer(v4l2_buffer* buffer, int i) const;
void DoCapture();
- void SetErrorState(const std::string& reason);
+ void SetErrorState(const tracked_objects::Location& from_here,
+ const std::string& reason);
const v4l2_buf_type capture_type_;
const scoped_refptr<base::SingleThreadTaskRunner> v4l2_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698