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

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

Issue 2613793007: Revert of [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | media/capture/video/video_frame_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/video_capture_jpeg_decoder.h
diff --git a/media/capture/video/video_capture_jpeg_decoder.h b/media/capture/video/video_capture_jpeg_decoder.h
index 20b37b4649f186d9e1973c809e2d472adf190c8f..193fabb0ebce7195b946cc2f8fd82f5d6f0deb67 100644
--- a/media/capture/video/video_capture_jpeg_decoder.h
+++ b/media/capture/video/video_capture_jpeg_decoder.h
@@ -19,9 +19,9 @@
// decode error.
};
- using DecodeDoneCB =
- base::Callback<void(media::VideoCaptureDevice::Client::Buffer,
- scoped_refptr<media::VideoFrame>)>;
+ using DecodeDoneCB = base::Callback<void(
+ std::unique_ptr<media::VideoCaptureDevice::Client::Buffer>,
+ scoped_refptr<media::VideoFrame>)>;
virtual ~VideoCaptureJpegDecoder() {}
@@ -38,7 +38,8 @@
const media::VideoCaptureFormat& frame_format,
base::TimeTicks reference_time,
base::TimeDelta timestamp,
- media::VideoCaptureDevice::Client::Buffer out_buffer) = 0;
+ std::unique_ptr<media::VideoCaptureDevice::Client::Buffer>
+ out_buffer) = 0;
};
} // namespace media
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | media/capture/video/video_frame_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698