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

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

Issue 941833004: VideoCaptureDevice: refactor Client::Buffer into an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@ comment Created 5 years, 10 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 | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_device.h
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h
index d03b185cee0cf56bc514eedca7ba25064f92fcc1..84a211f692bbb314c064debab6f9d29dcb8dfac1 100644
--- a/media/video/capture/video_capture_device.h
+++ b/media/video/capture/video_capture_device.h
@@ -175,20 +175,13 @@ class MEDIA_EXPORT VideoCaptureDevice {
// Memory buffer returned by Client::ReserveOutputBuffer().
class Buffer : public base::RefCountedThreadSafe<Buffer> {
public:
- int id() const { return id_; }
- void* data() const { return data_; }
- size_t size() const { return size_; }
+ virtual int id() const = 0;
+ virtual void* data() const = 0;
+ virtual size_t size() const = 0;
protected:
friend class base::RefCountedThreadSafe<Buffer>;
-
- Buffer(int id, void* data, size_t size)
- : id_(id), data_(data), size_(size) {}
virtual ~Buffer() {}
-
- const int id_;
- void* const data_;
- const size_t size_;
};
virtual ~Client() {}
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698