OLD | NEW |
---|---|
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_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 int buffer_id, | 95 int buffer_id, |
96 int frame_feedback_id, | 96 int frame_feedback_id, |
97 std::unique_ptr< | 97 std::unique_ptr< |
98 media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission> | 98 media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission> |
99 buffer_read_permission, | 99 buffer_read_permission, |
100 media::mojom::VideoFrameInfoPtr frame_info) override; | 100 media::mojom::VideoFrameInfoPtr frame_info) override; |
101 void OnBufferRetired(int buffer_id) override; | 101 void OnBufferRetired(int buffer_id) override; |
102 void OnError() override; | 102 void OnError() override; |
103 void OnLog(const std::string& message) override; | 103 void OnLog(const std::string& message) override; |
104 void OnStarted() override; | 104 void OnStarted() override; |
105 void OnStartedUsingGpuDecode() override; | |
106 void OnStoppedUsingGpuDecode() override; | |
mcasas
2017/03/07 19:39:37
I don't see the need for OnStoppedUsingGpuDecode()
chfremer
2017/03/07 22:30:38
True that it is not strictly needed. I added it fo
| |
105 | 107 |
106 private: | 108 private: |
107 struct ControllerClient; | 109 struct ControllerClient; |
108 typedef std::list<std::unique_ptr<ControllerClient>> ControllerClients; | 110 typedef std::list<std::unique_ptr<ControllerClient>> ControllerClients; |
109 | 111 |
110 class BufferContext { | 112 class BufferContext { |
111 public: | 113 public: |
112 BufferContext( | 114 BufferContext( |
113 int buffer_context_id, | 115 int buffer_context_id, |
114 int buffer_id, | 116 int buffer_id, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 media::VideoCaptureFormat video_capture_format_; | 194 media::VideoCaptureFormat video_capture_format_; |
193 | 195 |
194 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 196 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
195 | 197 |
196 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 198 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
197 }; | 199 }; |
198 | 200 |
199 } // namespace content | 201 } // namespace content |
200 | 202 |
201 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 203 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |