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

Side by Side Diff: content/browser/renderer_host/media/video_capture_host.h

Issue 2398463003: 16 bit capture and GPU&CPU memory buffer support.
Patch Set: fixes. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // VideoCaptureHost serves video capture related messages from 5 // VideoCaptureHost serves video capture related messages from
6 // VideoCaptureMessageFilter which lives inside the render process. 6 // VideoCaptureMessageFilter which lives inside the render process.
7 // 7 //
8 // This class is owned by RenderProcessHostImpl, and instantiated on UI 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI
9 // thread, but all other operations and method calls happen on IO thread. 9 // thread, but all other operations and method calls happen on IO thread.
10 // 10 //
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // VideoCaptureControllerEventHandler implementation. 80 // VideoCaptureControllerEventHandler implementation.
81 void OnError(VideoCaptureControllerID id) override; 81 void OnError(VideoCaptureControllerID id) override;
82 void OnBufferCreated(VideoCaptureControllerID id, 82 void OnBufferCreated(VideoCaptureControllerID id,
83 base::SharedMemoryHandle handle, 83 base::SharedMemoryHandle handle,
84 int length, 84 int length,
85 int buffer_id) override; 85 int buffer_id) override;
86 void OnBufferCreated2(VideoCaptureControllerID id, 86 void OnBufferCreated2(VideoCaptureControllerID id,
87 const std::vector<gfx::GpuMemoryBufferHandle>& handles, 87 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
88 const gfx::Size& size, 88 const gfx::Size& size,
89 media::VideoPixelFormat format,
89 int buffer_id) override; 90 int buffer_id) override;
90 void OnBufferDestroyed(VideoCaptureControllerID id, 91 void OnBufferDestroyed(VideoCaptureControllerID id,
91 int buffer_id) override; 92 int buffer_id) override;
92 void OnBufferReady(VideoCaptureControllerID id, 93 void OnBufferReady(VideoCaptureControllerID id,
93 int buffer_id, 94 int buffer_id,
94 const scoped_refptr<media::VideoFrame>& frame) override; 95 const scoped_refptr<media::VideoFrame>& frame) override;
95 void OnEnded(VideoCaptureControllerID id) override; 96 void OnEnded(VideoCaptureControllerID id) override;
96 97
97 private: 98 private:
98 friend class BrowserThread; 99 friend class BrowserThread;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // is connected. An entry in this map holds a null controller while it is in 164 // is connected. An entry in this map holds a null controller while it is in
164 // the process of starting. 165 // the process of starting.
165 EntryMap entries_; 166 EntryMap entries_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 168 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
168 }; 169 };
169 170
170 } // namespace content 171 } // namespace content
171 172
172 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 173 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698