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

Unified Diff: ui/ozone/platform/drm/gpu/screen_manager.cc

Issue 1780013002: Fix black screen when switching primary display without bounds change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build failure in MockScanoutBuffer (again! sorry) Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/scanout_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/screen_manager.cc
diff --git a/ui/ozone/platform/drm/gpu/screen_manager.cc b/ui/ozone/platform/drm/gpu/screen_manager.cc
index f29fcde7d912fa7e8691bf59f3bd9d34241c774b..37e4afcb3c214df261a4eecfda44a49c0d91daad 100644
--- a/ui/ozone/platform/drm/gpu/screen_manager.cc
+++ b/ui/ozone/platform/drm/gpu/screen_manager.cc
@@ -335,7 +335,9 @@ OverlayPlane ScreenManager::GetModesetBuffer(
DrmWindow* window = FindWindowAt(bounds);
if (window) {
const OverlayPlane* primary = window->GetLastModesetBuffer();
- if (primary && primary->buffer->GetSize() == bounds.size())
+ const DrmDevice* drm = controller->GetAllocationDrmDevice().get();
+ if (primary && primary->buffer->GetSize() == bounds.size() &&
+ primary->buffer->GetDrmDevice() == drm)
return *primary;
}
« no previous file with comments | « ui/ozone/platform/drm/gpu/scanout_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698