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

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

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: Created 3 years, 10 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 // VideoCaptureControllerEventHandler implementation. 41 // VideoCaptureControllerEventHandler implementation.
42 void OnError(VideoCaptureControllerID id) override; 42 void OnError(VideoCaptureControllerID id) override;
43 void OnBufferCreated(VideoCaptureControllerID id, 43 void OnBufferCreated(VideoCaptureControllerID id,
44 mojo::ScopedSharedBufferHandle handle, 44 mojo::ScopedSharedBufferHandle handle,
45 int length, 45 int length,
46 int buffer_id) override; 46 int buffer_id) override;
47 void OnBufferDestroyed(VideoCaptureControllerID id, 47 void OnBufferDestroyed(VideoCaptureControllerID id,
48 int buffer_id) override; 48 int buffer_id) override;
49 void OnBufferReady(VideoCaptureControllerID id, 49 void OnBufferReady(VideoCaptureControllerID id,
50 int buffer_id, 50 int buffer_id,
51 const scoped_refptr<media::VideoFrame>& frame) override; 51 media::mojom::VideoFrameInfoPtr frame_info) override;
52 void OnEnded(VideoCaptureControllerID id) override; 52 void OnEnded(VideoCaptureControllerID id) override;
53 53
54 // mojom::VideoCaptureHost implementation 54 // mojom::VideoCaptureHost implementation
55 void Start(int32_t device_id, 55 void Start(int32_t device_id,
56 int32_t session_id, 56 int32_t session_id,
57 const media::VideoCaptureParams& params, 57 const media::VideoCaptureParams& params,
58 mojom::VideoCaptureObserverPtr observer) override; 58 mojom::VideoCaptureObserverPtr observer) override;
59 void Stop(int32_t device_id) override; 59 void Stop(int32_t device_id) override;
60 void Pause(int32_t device_id) override; 60 void Pause(int32_t device_id) override;
61 void Resume(int32_t device_id, 61 void Resume(int32_t device_id,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; 101 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_;
102 102
103 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; 103 base::WeakPtrFactory<VideoCaptureHost> weak_factory_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
106 }; 106 };
107 107
108 } // namespace content 108 } // namespace content
109 109
110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698