requires std::invocable<F, DesktopCapturer*, Args...>This is to allow passing function pointers in both `remoting::DesktopCapturer` and `webrtc::DesktopCapturer`. It turns out if an inherited method is not overridden, then clang will think that it is the same as the one in the base class, so the old way will emit weird errors.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// webrtc::DesktopCapturer interface.Not your code but this should be `remoting`.
base::OnceCallback<void(std::unique_ptr<remoting::DesktopCapturer>)>>I don't think this is needed since you're already in the remoting namespace.
enum class CapturerType {I'm fine using this for now but I do think we should consider cleaning up the IPC model when we no longer support the Chromotocol classes.
enum class CapturerType {Feel free to ack but we already have a desktop_capturer_type in third_party/webrtc/modules/desktop_capture/desktop_capture_types.h.
WDYT about calling this CaptureMode where the values are PUSH or PULL?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for the review! Based on the comment in crrev.com/c/7590867, I'm probably going to abandon this CL though. The new approach should hopefully eliminate the need for this method.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |