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

Unified Diff: ui/ozone/platform/dri/dri_surface.cc

Issue 535963002: ozone: Directly provide size of active mode from HardwareDisplayController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_surface.cc
diff --git a/ui/ozone/platform/dri/dri_surface.cc b/ui/ozone/platform/dri/dri_surface.cc
index f12ef693570dce96e6cc379473aa5079e170d886..dc166fdbf0276b359a7989189d16e00cc6b6e153 100644
--- a/ui/ozone/platform/dri/dri_surface.cc
+++ b/ui/ozone/platform/dri/dri_surface.cc
@@ -58,10 +58,8 @@ void DriSurface::ResizeCanvas(const gfx::Size& viewport_size) {
// For the display buffers use the mode size since a |viewport_size| smaller
// than the display size will not scanout.
- gfx::Size mode_size(controller->get_mode().hdisplay,
- controller->get_mode().vdisplay);
for (size_t i = 0; i < arraysize(buffers_); ++i)
- buffers_[i] = AllocateBuffer(dri_, mode_size);
+ buffers_[i] = AllocateBuffer(dri_, controller->GetModeSize());
}
void DriSurface::PresentCanvas(const gfx::Rect& damage) {
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698