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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_handle.h

Issue 2343423003: Extract nested and private classes from VideoCaptureBufferPool (Closed)
Patch Set: Merge branch 'master' into BufferPoolRefactor Created 4 years, 3 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: content/browser/renderer_host/media/video_capture_buffer_handle.h
diff --git a/content/browser/renderer_host/media/video_capture_buffer_handle.h b/content/browser/renderer_host/media/video_capture_buffer_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e170043fcb1926c37a4be1e68fb370ca5399ff5
--- /dev/null
+++ b/content/browser/renderer_host/media/video_capture_buffer_handle.h
@@ -0,0 +1,29 @@
+// 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_BUFFER_HANDLE_H_
+#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_BUFFER_HANDLE_H_
+
+#include "base/files/file.h"
+#include "ui/gfx/geometry/size.h"
+#include "ui/gfx/gpu_memory_buffer.h"
+
+namespace content {
+
+// Abstraction of a pool's buffer data buffer and size for clients.
+class VideoCaptureBufferHandle {
+ public:
+ virtual ~VideoCaptureBufferHandle() {}
+ virtual gfx::Size dimensions() const = 0;
+ virtual size_t mapped_size() const = 0;
+ virtual void* data(int plane) = 0;
+ virtual ClientBuffer AsClientBuffer(int plane) = 0;
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+ virtual base::FileDescriptor AsPlatformFile() = 0;
+#endif
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_BUFFER_HANDLE_H_

Powered by Google App Engine
This is Rietveld 408576698