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

Unified Diff: ui/ozone/platform/dri/dri_wrapper.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/dri_wrapper.h ('k') | 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_wrapper.cc
diff --git a/ui/ozone/platform/dri/dri_wrapper.cc b/ui/ozone/platform/dri/dri_wrapper.cc
index faf10e231bb97413e722d3a230edef3bfd688834..929dd27d8a45fd88f38269c6d35a38dac9530113 100644
--- a/ui/ozone/platform/dri/dri_wrapper.cc
+++ b/ui/ozone/platform/dri/dri_wrapper.cc
@@ -144,9 +144,9 @@ class DriWrapper::IOWatcher
DISALLOW_COPY_AND_ASSIGN(IOWatcher);
};
-DriWrapper::DriWrapper(const char* device_path, bool software_mode)
+DriWrapper::DriWrapper(const char* device_path, bool use_sync_flips)
: fd_(-1),
- software_mode_(software_mode),
+ use_sync_flips_(use_sync_flips),
device_path_(device_path),
io_thread_("DriIOThread") {
plane_manager_.reset(new HardwareDisplayPlaneManagerLegacy());
@@ -169,7 +169,7 @@ void DriWrapper::Initialize() {
}
void DriWrapper::InitializeIOWatcher() {
- if (!software_mode_ && !watcher_) {
+ if (!use_sync_flips_ && !watcher_) {
if (!io_thread_.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0)))
LOG(FATAL) << "Failed to start the IO helper thread";
@@ -278,7 +278,7 @@ bool DriWrapper::PageFlip(uint32_t crtc_id,
payload.get())) {
// If successful the payload will be removed by a PageFlip event.
ignore_result(payload.release());
- if (software_mode_) {
+ if (use_sync_flips_) {
TRACE_EVENT1("dri", "OnDrmEvent", "socket", fd_);
drmEventContext event;
« no previous file with comments | « ui/ozone/platform/dri/dri_wrapper.h ('k') | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698