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

Unified Diff: content/renderer/media/video_capture_impl.h

Issue 2395913003: Cleanup of passing GpuMemoryBuffer backed video frames (Closed)
Patch Set: Rebase Created 4 years, 2 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/renderer/media/gpu/rtc_video_encoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.h
diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
index a78c901c09340862cce58e5fd7ba1aa6d3ffcc41..5fcc338c31b4a90c599ccf9d16957da58dc3bb58 100644
--- a/content/renderer/media/video_capture_impl.h
+++ b/content/renderer/media/video_capture_impl.h
@@ -98,7 +98,6 @@ class CONTENT_EXPORT VideoCaptureImpl
// Carries a shared memory for transferring video frames from browser to
// renderer.
class ClientBuffer;
- class ClientBuffer2;
// Contains information for a video capture client. Including parameters
// for capturing and callbacks to the client.
@@ -120,9 +119,6 @@ class CONTENT_EXPORT VideoCaptureImpl
void OnBufferCreated(base::SharedMemoryHandle handle,
int length,
int buffer_id) override;
- void OnBufferCreated2(const std::vector<gfx::GpuMemoryBufferHandle>& handles,
- const gfx::Size& size,
- int buffer_id) override;
void OnBufferDestroyed(int buffer_id) override;
void OnBufferReceived(int buffer_id,
base::TimeDelta timestamp,
@@ -140,10 +136,6 @@ class CONTENT_EXPORT VideoCaptureImpl
const scoped_refptr<ClientBuffer>& buffer,
const gpu::SyncToken& release_sync_token,
double consumer_resource_utilization);
- void OnClientBufferFinished2(int buffer_id,
- const scoped_refptr<ClientBuffer2>& buffer,
- const gpu::SyncToken& release_sync_token,
- double consumer_resource_utilization);
void StopDevice();
void RestartCapture();
@@ -180,8 +172,6 @@ class CONTENT_EXPORT VideoCaptureImpl
// Buffers available for sending to the client.
typedef std::map<int32_t, scoped_refptr<ClientBuffer>> ClientBufferMap;
ClientBufferMap client_buffers_;
- typedef std::map<int32_t, scoped_refptr<ClientBuffer2>> ClientBuffer2Map;
- ClientBuffer2Map client_buffer2s_;
ClientInfoMap clients_;
ClientInfoMap clients_pending_on_filter_;
« no previous file with comments | « content/renderer/media/gpu/rtc_video_encoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698