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

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

Issue 2568243004: ozone: Remove USE_LINEAR when allocating modeset buffers. (Closed)
Patch Set: Created 4 years 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 | 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/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index c54e992f66126c9d7d6c130b619c5c10ea0b3cba..1b91c7eca2f8074ca60aef733c224e520e5bdeb1 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -40,8 +40,8 @@ class GbmBufferGenerator : public ScanoutBufferGenerator {
uint32_t format,
const gfx::Size& size) override {
scoped_refptr<GbmDevice> gbm(static_cast<GbmDevice*>(drm.get()));
- return GbmBuffer::CreateBuffer(gbm, format, size,
- GBM_BO_USE_SCANOUT | GBM_BO_USE_LINEAR);
+ // TODO(dcastagna): Use GBM_BO_USE_MAP modifier once minigbm exposes it.
+ return GbmBuffer::CreateBuffer(gbm, format, size, GBM_BO_USE_SCANOUT);
}
protected:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698