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

Unified Diff: ui/ozone/platform/drm/gpu/drm_buffer.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: Add DrmDevice check in ScreenManager::GetModesetBuffer 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
Index: ui/ozone/platform/drm/gpu/drm_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_buffer.cc b/ui/ozone/platform/drm/gpu/drm_buffer.cc
index 24981a52eac0c29f2ff3208389c64bcdc8116e9e..3acbe62c93e76eebf296c0188185d3a2c1dad08b 100644
--- a/ui/ozone/platform/drm/gpu/drm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/drm_buffer.cc
@@ -106,6 +106,10 @@ gfx::Size DrmBuffer::GetSize() const {
return gfx::Size(surface_->width(), surface_->height());
}
+const DrmDevice* DrmBuffer::GetDrmDevice() const {
+ return drm_.get();
+}
+
bool DrmBuffer::RequiresGlFinish() const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698