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

Unified Diff: ui/ozone/platform/dri/test/mock_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/test/mock_dri_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/test/mock_dri_wrapper.cc
diff --git a/ui/ozone/platform/dri/test/mock_dri_wrapper.cc b/ui/ozone/platform/dri/test/mock_dri_wrapper.cc
index 4ea9dea46f45b8fe4f28f2dc224bc9e7d12daa51..3f65ffaaf2f41b818d7d1e6c3dcba723ac9fc804 100644
--- a/ui/ozone/platform/dri/test/mock_dri_wrapper.cc
+++ b/ui/ozone/platform/dri/test/mock_dri_wrapper.cc
@@ -58,10 +58,10 @@ MockDriWrapper::MockDriWrapper(int fd)
}
MockDriWrapper::MockDriWrapper(int fd,
- bool software_mode,
+ bool use_sync_flips,
std::vector<uint32_t> crtcs,
size_t planes_per_crtc)
- : DriWrapper("", software_mode),
+ : DriWrapper("", use_sync_flips),
get_crtc_call_count_(0),
set_crtc_call_count_(0),
restore_crtc_call_count_(0),
@@ -139,7 +139,7 @@ bool MockDriWrapper::PageFlip(uint32_t crtc_id,
page_flip_call_count_++;
current_framebuffer_ = framebuffer;
if (page_flip_expectation_) {
- if (software_mode_)
+ if (use_sync_flips_)
callback.Run(0, 0, 0);
else
callbacks_.push(callback);
« no previous file with comments | « ui/ozone/platform/dri/test/mock_dri_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698