OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // change this time. And during next Duplicate() function call, their | 121 // change this time. And during next Duplicate() function call, their |
122 // updated_region_ will be merged and copied. | 122 // updated_region_ will be merged and copied. |
123 std::vector<Context*> contexts_; | 123 std::vector<Context*> contexts_; |
124 | 124 |
125 // The last full frame of this output and its offset. If on AcquireNextFrame() | 125 // The last full frame of this output and its offset. If on AcquireNextFrame() |
126 // failed because of timeout, i.e. no update, we can copy content from | 126 // failed because of timeout, i.e. no update, we can copy content from |
127 // |last_frame_|. | 127 // |last_frame_|. |
128 std::unique_ptr<SharedDesktopFrame> last_frame_; | 128 std::unique_ptr<SharedDesktopFrame> last_frame_; |
129 DesktopVector last_frame_offset_; | 129 DesktopVector last_frame_offset_; |
130 | 130 |
131 int64_t num_frames_captured_; | 131 int64_t num_frames_captured_ = 0; |
132 }; | 132 }; |
133 | 133 |
134 } // namespace webrtc | 134 } // namespace webrtc |
135 | 135 |
136 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_OUTPUT_DUPLICATOR_H_ | 136 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_OUTPUT_DUPLICATOR_H_ |
OLD | NEW |