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

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

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Fix compile errors Created 3 years, 8 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/shared_memory_buffer_tracker.h
diff --git a/media/capture/video/shared_memory_buffer_tracker.h b/media/capture/video/shared_memory_buffer_tracker.h
index bbca851336d9f9240e1ea993825852aefe8bc4fe..1d10727262c689e3cfd85075b7a3f6595624e94b 100644
--- a/media/capture/video/shared_memory_buffer_tracker.h
+++ b/media/capture/video/shared_memory_buffer_tracker.h
@@ -5,12 +5,11 @@
#ifndef MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_TRACKER_H_
#define MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_TRACKER_H_
+#include "media/capture/video/shared_memory_buffer_handle.h"
#include "media/capture/video/video_capture_buffer_tracker.h"
namespace media {
-class SharedMemoryBufferHandle;
-
// Tracker specifics for SharedMemory.
class SharedMemoryBufferTracker final : public VideoCaptureBufferTracker {
public:
@@ -33,24 +32,6 @@ class SharedMemoryBufferTracker final : public VideoCaptureBufferTracker {
size_t mapped_size_;
};
-// A simple proxy that implements the BufferHandle interface, providing
-// accessors to SharedMemTracker's memory and properties.
-class SharedMemoryBufferHandle : public VideoCaptureBufferHandle {
- public:
- // |tracker| must outlive SimpleBufferHandle. This is ensured since a
- // tracker is pinned until ownership of this SimpleBufferHandle is returned
- // to VideoCaptureBufferPool.
- explicit SharedMemoryBufferHandle(SharedMemoryBufferTracker* tracker);
- ~SharedMemoryBufferHandle() override;
-
- size_t mapped_size() const override;
- uint8_t* data() override;
- const uint8_t* data() const override;
-
- private:
- SharedMemoryBufferTracker* const tracker_;
-};
-
} // namespace media
#endif // MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_TRACKER_H_
« no previous file with comments | « media/capture/video/shared_memory_buffer_handle.cc ('k') | media/capture/video/shared_memory_buffer_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698