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

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

Issue 2045813003: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 6 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int buffer_id) override; 89 int buffer_id) override;
90 void OnBufferDestroyed(VideoCaptureControllerID id, 90 void OnBufferDestroyed(VideoCaptureControllerID id,
91 int buffer_id) override; 91 int buffer_id) override;
92 void OnBufferReady(VideoCaptureControllerID id, 92 void OnBufferReady(VideoCaptureControllerID id,
93 int buffer_id, 93 int buffer_id,
94 const scoped_refptr<media::VideoFrame>& frame, 94 const scoped_refptr<media::VideoFrame>& frame) override;
95 const base::TimeTicks& timestamp) override;
96 void OnEnded(VideoCaptureControllerID id) override; 95 void OnEnded(VideoCaptureControllerID id) override;
97 96
98 private: 97 private:
99 friend class BrowserThread; 98 friend class BrowserThread;
100 friend class base::DeleteHelper<VideoCaptureHost>; 99 friend class base::DeleteHelper<VideoCaptureHost>;
101 friend class MockVideoCaptureHost; 100 friend class MockVideoCaptureHost;
102 friend class VideoCaptureHostTest; 101 friend class VideoCaptureHostTest;
103 102
104 void DoError(VideoCaptureControllerID id); 103 void DoError(VideoCaptureControllerID id);
105 void DoEnded(VideoCaptureControllerID id); 104 void DoEnded(VideoCaptureControllerID id);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // is connected. An entry in this map holds a null controller while it is in 163 // is connected. An entry in this map holds a null controller while it is in
165 // the process of starting. 164 // the process of starting.
166 EntryMap entries_; 165 EntryMap entries_;
167 166
168 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 167 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
169 }; 168 };
170 169
171 } // namespace content 170 } // namespace content
172 171
173 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 172 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698