diff --git a/modules/desktop_capture/desktop_and_cursor_composer.cc b/modules/desktop_capture/desktop_and_cursor_composer.cc index 355bfacfbb..bde91bd07b 100644 --- a/modules/desktop_capture/desktop_and_cursor_composer.cc +++ b/modules/desktop_capture/desktop_and_cursor_composer.cc @@ -218,7 +218,7 @@ void DesktopAndCursorComposer::OnCaptureResult( !desktop_capturer_->IsOccluded(cursor_position_)) { DesktopVector relative_position = cursor_position_.subtract(frame->top_left()); -#if defined(WEBRTC_MAC) +#if defined(WEBRTC_MAC) || defined(CHROMEOS) // On OSX, the logical(DIP) and physical coordinates are used mixingly. // For example, the captured cursor has its size in physical pixels(2x) // and location in logical(DIP) pixels on Retina monitor. This will cause diff --git a/modules/desktop_capture/desktop_frame.cc b/modules/desktop_capture/desktop_frame.cc index 9e4a899fd2..6e24fab4b5 100644 --- a/modules/desktop_capture/desktop_frame.cc +++ b/modules/desktop_capture/desktop_frame.cc @@ -112,7 +112,7 @@ DesktopRect DesktopFrame::rect() const { float DesktopFrame::scale_factor() const { float scale = 1.0f; -#if defined(WEBRTC_MAC) +#if defined(WEBRTC_MAC) || defined(CHROMEOS) // At least on Windows the logical and physical pixel are the same // See http://crbug.com/948362. if (!dpi().is_zero() && dpi().x() == dpi().y())