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

Unified Diff: ui/ozone/platform/dri/test/mock_dri_wrapper.cc

Issue 856423002: [Ozone-Dri] Decouple the IO helper thread from DriWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gbm-wrapper
Patch Set: . 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
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 3f65ffaaf2f41b818d7d1e6c3dcba723ac9fc804..0fc315ca9c278636dbfe01c90dc8cb80774ea616 100644
--- a/ui/ozone/platform/dri/test/mock_dri_wrapper.cc
+++ b/ui/ozone/platform/dri/test/mock_dri_wrapper.cc
@@ -40,7 +40,7 @@ class MockHardwareDisplayPlaneManager
} // namespace
MockDriWrapper::MockDriWrapper(int fd)
- : DriWrapper("", true),
+ : DriWrapper("", nullptr),
get_crtc_call_count_(0),
set_crtc_call_count_(0),
restore_crtc_call_count_(0),
@@ -61,7 +61,7 @@ MockDriWrapper::MockDriWrapper(int fd,
bool use_sync_flips,
std::vector<uint32_t> crtcs,
size_t planes_per_crtc)
- : DriWrapper("", use_sync_flips),
+ : DriWrapper("", nullptr),
get_crtc_call_count_(0),
set_crtc_call_count_(0),
restore_crtc_call_count_(0),
@@ -73,6 +73,7 @@ MockDriWrapper::MockDriWrapper(int fd,
add_framebuffer_expectation_(true),
page_flip_expectation_(true),
create_dumb_buffer_expectation_(true),
+ use_sync_flips_(use_sync_flips),
current_framebuffer_(0) {
fd_ = fd;
plane_manager_.reset(
« ui/ozone/platform/dri/dri_wrapper.cc ('K') | « 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