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

Unified Diff: services/video_capture/buffer_tracker_factory_impl.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 | « services/video_capture/BUILD.gn ('k') | services/video_capture/buffer_tracker_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/buffer_tracker_factory_impl.h
diff --git a/services/video_capture/buffer_tracker_factory_impl.h b/services/video_capture/buffer_tracker_factory_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..8914349fff7ccdac87849f881199529dd0084baa
--- /dev/null
+++ b/services/video_capture/buffer_tracker_factory_impl.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_
+#define SERVICES_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_
+
+#include <memory>
+
+#include "media/capture/video/video_capture_buffer_tracker_factory.h"
+
+namespace video_capture {
+
+// Implementation of media::VideoCaptureBufferTrackerFactory specific to the
+// Mojo Video Capture service. It produces buffers that are backed by
+// mojo shared memory.
+class BufferTrackerFactoryImpl
+ : public media::VideoCaptureBufferTrackerFactory {
+ public:
+ std::unique_ptr<media::VideoCaptureBufferTracker> CreateTracker(
+ media::VideoPixelStorage storage) override;
+};
+
+} // namespace video_capture
+
+#endif // SERVICES_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | services/video_capture/buffer_tracker_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698