webrtc/modules/desktop_capture/linux
Lambros Lambrou 702f2a44ba [ScreenCapturerX11] Fix update-region for monitors with offsets.
This CL ensures that each DesktopFrame's updated-region is expressed in
the frame's own coordinates, where the top-left is always (0, 0).
For example, DesktopFrame::GetFrameDataAtPos() and its callers use
this coordinate system.

Previously, whenever a RANDR monitor with a non-zero offset was
selected, ScreenCapturerX11 would hit some DCHECKs when trying to
copy pixels from previous frames, or when capturing new pixels into
them from XDAMAGE regions.

Bug: None
Change-Id: I7b2e8d0449359ee7b263ad60af193e2bf89aa1f4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/232085
Reviewed-by: Joe Downing <joedow@chromium.org>
Commit-Queue: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#35017}
2021-09-16 17:12:26 +00:00
..
base_capturer_pipewire.cc Pipewire: Use xdg-portal provided file descriptor 2021-09-13 16:29:52 +00:00
base_capturer_pipewire.h Revert "Reland "PipeWire capturer: implement proper DMA-BUFs support""" 2021-09-03 11:28:26 +00:00
mouse_cursor_monitor_x11.cc Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
mouse_cursor_monitor_x11.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
pipewire03.sigs Pipewire: Use xdg-portal provided file descriptor 2021-09-13 16:29:52 +00:00
pipewire_stub_header.fragment Reland "Default to dlopening the PipeWire." 2019-01-08 08:09:42 +00:00
screen_capturer_x11.cc [ScreenCapturerX11] Fix update-region for monitors with offsets. 2021-09-16 17:12:26 +00:00
screen_capturer_x11.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
shared_x_display.cc Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
shared_x_display.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
window_capturer_x11.cc Format almost everything. 2019-07-08 13:45:15 +00:00
window_capturer_x11.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
window_finder_x11.cc Use std::make_unique instead of absl::make_unique. 2019-09-17 15:47:29 +00:00
window_finder_x11.h Reland "Add support for screen sharing with PipeWire on Wayland" 2018-11-13 15:05:05 +00:00
window_list_utils.cc Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
window_list_utils.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
x_atom_cache.cc Add ICC profile to DesktopFrame 2019-04-19 22:57:09 +00:00
x_atom_cache.h Add ICC profile to DesktopFrame 2019-04-19 22:57:09 +00:00
x_error_trap.cc Replace assert() with RTC_DCHECK(). 2021-07-09 07:49:43 +00:00
x_error_trap.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
x_server_pixel_buffer.cc Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
x_server_pixel_buffer.h Use backticks not vertical bars to denote variables in comments for /modules/desktop_capture 2021-08-09 13:12:52 +00:00
x_window_property.cc Add ICC profile to DesktopFrame 2019-04-19 22:57:09 +00:00
x_window_property.h Add ICC profile to DesktopFrame 2019-04-19 22:57:09 +00:00