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 // Implementation notes: This needs to work on a variety of hardware | 5 // Implementation notes: This needs to work on a variety of hardware |
6 // configurations where the speed of the CPU and GPU greatly affect overall | 6 // configurations where the speed of the CPU and GPU greatly affect overall |
7 // performance. Spanning several threads, the process of capturing has been | 7 // performance. Spanning several threads, the process of capturing has been |
8 // split up into four conceptual stages: | 8 // split up into four conceptual stages: |
9 // | 9 // |
10 // 1. Reserve Buffer: Before a frame can be captured, a slot in the client's | 10 // 1. Reserve Buffer: Before a frame can be captured, a slot in the client's |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 } | 950 } |
951 | 951 |
952 void WebContentsVideoCaptureDevice::Resume() { | 952 void WebContentsVideoCaptureDevice::Resume() { |
953 core_->Resume(); | 953 core_->Resume(); |
954 } | 954 } |
955 | 955 |
956 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { | 956 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { |
957 core_->StopAndDeAllocate(); | 957 core_->StopAndDeAllocate(); |
958 } | 958 } |
959 | 959 |
| 960 void WebContentsVideoCaptureDevice::OnUtilizationReport(int frame_feedback_id, |
| 961 double utilization) { |
| 962 core_->OnConsumerReportingUtilization(frame_feedback_id, utilization); |
| 963 } |
| 964 |
960 } // namespace content | 965 } // namespace content |
OLD | NEW |