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

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

Issue 847213002: [Ozone-DRI] Re-enable GBM surface mode support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 5 years, 11 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/dri/gbm_surface.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/ozone_platform_gbm.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_gbm.cc b/ui/ozone/platform/dri/ozone_platform_gbm.cc
index dedbb2ee0bf154801720cd844073b2ef9f7cea86..8cad833d63937d11e1b42d883dc4d477597463a9 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -146,7 +146,8 @@ class OzonePlatformGbm : public OzonePlatform {
}
void InitializeGPU() override {
- dri_.reset(new DriWrapper(kDefaultGraphicsCardPath, false));
+ // Async page flips are supported only on surfaceless mode.
+ dri_.reset(new DriWrapper(kDefaultGraphicsCardPath, !use_surfaceless_));
dri_->Initialize();
buffer_generator_.reset(new GbmBufferGenerator(dri_.get()));
screen_manager_.reset(
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698