Commit 99cf2dd7 authored by Jamie Walch's avatar Jamie Walch Committed by Commit Bot

Re-enable cursor compositing for relative pointer mode.

Change-Id: I34269e4b0ee6299ad438b405db37802e864a8e41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063414Reviewed-by: default avatarGary Kacmarcik <garykac@chromium.org>
Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743333}
parent 80e64974
......@@ -97,15 +97,12 @@ uint32_t BasicDesktopEnvironment::GetDesktopSessionId() const {
std::unique_ptr<DesktopAndCursorConditionalComposer>
BasicDesktopEnvironment::CreateComposingVideoCapturer() {
#if defined(OS_MACOSX)
// MacOS always includes the mouse cursor in the captured image.
return nullptr;
#else
// TODO(crbug.com/1050789): Return a valid instance after fixing the
// DesktopAndCursorConditionalComposer class.
// return std::make_unique<DesktopAndCursorConditionalComposer>(
// CreateVideoCapturer());
return nullptr;
// Mac includes the mouse cursor in the captured image in curtain mode.
if (options_.enable_curtaining())
return nullptr;
#endif
return std::make_unique<DesktopAndCursorConditionalComposer>(
CreateVideoCapturer());
}
std::unique_ptr<webrtc::DesktopCapturer>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment