| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ | 5 #ifndef MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ |
| 6 #define MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ | 6 #define MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Tracks the CaptureMachine that's doing work on our behalf | 115 // Tracks the CaptureMachine that's doing work on our behalf |
| 116 // on the device thread or UI thread. | 116 // on the device thread or UI thread. |
| 117 // This value should never be dereferenced by this class. | 117 // This value should never be dereferenced by this class. |
| 118 std::unique_ptr<VideoCaptureMachine> capture_machine_; | 118 std::unique_ptr<VideoCaptureMachine> capture_machine_; |
| 119 | 119 |
| 120 // Our thread-safe capture oracle which serves as the gateway to the video | 120 // Our thread-safe capture oracle which serves as the gateway to the video |
| 121 // capture pipeline. Besides the VideoCaptureDevice itself, it is the only | 121 // capture pipeline. Besides the VideoCaptureDevice itself, it is the only |
| 122 // component of the system with direct access to |client_|. | 122 // component of the system with direct access to |client_|. |
| 123 scoped_refptr<ThreadSafeCaptureOracle> oracle_proxy_; | 123 scoped_refptr<ThreadSafeCaptureOracle> oracle_proxy_; |
| 124 | 124 |
| 125 // After Resume(), some unknown amount of time has passed, and the content of |
| 126 // the capture source may have changed. This flag is used to ensure that the |
| 127 // passive refresh mechanism is not used for the first refresh frame following |
| 128 // a Resume(). |
| 129 bool force_active_refresh_once_; |
| 130 |
| 125 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceCore); | 131 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceCore); |
| 126 }; | 132 }; |
| 127 | 133 |
| 128 } // namespace media | 134 } // namespace media |
| 129 | 135 |
| 130 #endif // MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ | 136 #endif // MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ |
| OLD | NEW |