Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Issue 253513002: disable crtcs bigger than new screen size during mode switch (Closed)

Created:
6 years, 8 months ago by dbehr
Modified:
6 years, 8 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

disable crtcs bigger than new screen size during mode switch When switching modes, we disable CRTCs that do not fit on current freamebuffer, change framebuffer size, then enable required CRTCs in the right locations. This fails in a switch from extended desktop to mirror mode, e.g. from 1366x768+1920x1080 to 1024x768 mirrored. Both CRTCs fit into current framebuffer but they are smaller than the framebuffer we are about to resize to (1024x768) so XRRSetScreenSize(1024,768) call fails because it cannot shrink framebuffer size below size of currently enabled CRTCs. The solution is to disable CRTCs that are bigger than minimum of current and new framebuffer. BUG=chromium:366280 TEST=switch between mirror and extended desktop on Link or Squawks. Screen size\ (in DISPLAY=:0.0 xrandr --verbose) should shrink when switching to mirror mode. R=djkurtz@chromium.org R=oshima@chromium.org Signed-off-by: Dominik Behr <dbehr@chromium.org>; Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266095

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 3 chunks +10 lines, -7 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
dbehr
6 years, 8 months ago (2014-04-24 20:56:07 UTC) #1
oshima
lgtm
6 years, 8 months ago (2014-04-24 21:07:35 UTC) #2
dbehr
The CQ bit was checked by dbehr@chromium.org
6 years, 8 months ago (2014-04-24 22:48:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbehr@chromium.org/253513002/1
6 years, 8 months ago (2014-04-24 22:49:27 UTC) #4
commit-bot: I haz the power
Change committed as 266095
6 years, 8 months ago (2014-04-25 02:43:54 UTC) #5
Daniel Kurtz
6 years, 8 months ago (2014-04-25 04:35:29 UTC) #6
Message was sent while issue was closed.
lgtm modulo nit

https://codereview.chromium.org/253513002/diff/1/ui/display/chromeos/x11/nati...
File ui/display/chromeos/x11/native_display_delegate_x11.cc (right):

https://codereview.chromium.org/253513002/diff/1/ui/display/chromeos/x11/nati...
ui/display/chromeos/x11/native_display_delegate_x11.cc:558:
DefaultScreen(display_)), new_size.width());
I think this would have been easier to read:
  int current_width = DisplayWidth(display_, DefaultScreen(display_));
  int common_width = std::min(current_width, new_size.width());

Powered by Google App Engine
This is Rietveld 408576698