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

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

Issue 500653003: Video capture frame size: separate coded size and visible size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content_unittests build. Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 virtual void OnError(const VideoCaptureControllerID& id) OVERRIDE; 79 virtual void OnError(const VideoCaptureControllerID& id) OVERRIDE;
80 virtual void OnBufferCreated(const VideoCaptureControllerID& id, 80 virtual void OnBufferCreated(const VideoCaptureControllerID& id,
81 base::SharedMemoryHandle handle, 81 base::SharedMemoryHandle handle,
82 int length, 82 int length,
83 int buffer_id) OVERRIDE; 83 int buffer_id) OVERRIDE;
84 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, 84 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id,
85 int buffer_id) OVERRIDE; 85 int buffer_id) OVERRIDE;
86 virtual void OnBufferReady(const VideoCaptureControllerID& id, 86 virtual void OnBufferReady(const VideoCaptureControllerID& id,
87 int buffer_id, 87 int buffer_id,
88 const media::VideoCaptureFormat& format, 88 const media::VideoCaptureFormat& format,
89 const gfx::Rect& visible_rect,
89 base::TimeTicks timestamp) OVERRIDE; 90 base::TimeTicks timestamp) OVERRIDE;
90 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id, 91 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id,
91 int buffer_id, 92 int buffer_id,
92 const gpu::MailboxHolder& mailbox_holder, 93 const gpu::MailboxHolder& mailbox_holder,
93 const media::VideoCaptureFormat& format, 94 const media::VideoCaptureFormat& format,
94 base::TimeTicks timestamp) OVERRIDE; 95 base::TimeTicks timestamp) OVERRIDE;
95 virtual void OnEnded(const VideoCaptureControllerID& id) OVERRIDE; 96 virtual void OnEnded(const VideoCaptureControllerID& id) OVERRIDE;
96 97
97 private: 98 private:
98 friend class BrowserThread; 99 friend class BrowserThread;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 149
149 void DoSendFreeBufferOnIOThread( 150 void DoSendFreeBufferOnIOThread(
150 const VideoCaptureControllerID& controller_id, 151 const VideoCaptureControllerID& controller_id,
151 int buffer_id); 152 int buffer_id);
152 153
153 // Sends a filled buffer to the VideoCaptureMessageFilter. 154 // Sends a filled buffer to the VideoCaptureMessageFilter.
154 void DoSendFilledBufferOnIOThread( 155 void DoSendFilledBufferOnIOThread(
155 const VideoCaptureControllerID& controller_id, 156 const VideoCaptureControllerID& controller_id,
156 int buffer_id, 157 int buffer_id,
157 const media::VideoCaptureFormat& format, 158 const media::VideoCaptureFormat& format,
159 const gfx::Rect& visible_rect,
158 base::TimeTicks timestamp); 160 base::TimeTicks timestamp);
159 161
160 // Sends a filled texture mailbox buffer to the VideoCaptureMessageFilter. 162 // Sends a filled texture mailbox buffer to the VideoCaptureMessageFilter.
161 void DoSendFilledMailboxBufferOnIOThread( 163 void DoSendFilledMailboxBufferOnIOThread(
162 const VideoCaptureControllerID& controller_id, 164 const VideoCaptureControllerID& controller_id,
163 int buffer_id, 165 int buffer_id,
164 const gpu::MailboxHolder& mailbox_holder, 166 const gpu::MailboxHolder& mailbox_holder,
165 const media::VideoCaptureFormat& format, 167 const media::VideoCaptureFormat& format,
166 base::TimeTicks timestamp); 168 base::TimeTicks timestamp);
167 169
(...skipping 16 matching lines...) Expand all
184 // is connected. An entry in this map holds a null controller while it is in 186 // is connected. An entry in this map holds a null controller while it is in
185 // the process of starting. 187 // the process of starting.
186 EntryMap entries_; 188 EntryMap entries_;
187 189
188 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 190 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
189 }; 191 };
190 192
191 } // namespace content 193 } // namespace content
192 194
193 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 195 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698