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

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

Issue 960273003: ozone: dri: add synchronous SwapBuffers support on surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 10 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/hardware_display_plane_manager_legacy.cc
diff --git a/ui/ozone/platform/dri/hardware_display_plane_manager_legacy.cc b/ui/ozone/platform/dri/hardware_display_plane_manager_legacy.cc
index 707f4b4973464334bdf573669cdf44d04580594f..3853ff5e56cb5efdbf07013e9295270cf579589c 100644
--- a/ui/ozone/platform/dri/hardware_display_plane_manager_legacy.cc
+++ b/ui/ozone/platform/dri/hardware_display_plane_manager_legacy.cc
@@ -18,7 +18,8 @@ HardwareDisplayPlaneManagerLegacy::~HardwareDisplayPlaneManagerLegacy() {
}
bool HardwareDisplayPlaneManagerLegacy::Commit(
- HardwareDisplayPlaneList* plane_list) {
+ HardwareDisplayPlaneList* plane_list,
+ bool is_sync) {
if (plane_list->plane_list.empty()) // No assigned planes, nothing to do.
return true;
bool ret = true;
@@ -43,13 +44,14 @@ bool HardwareDisplayPlaneManagerLegacy::Commit(
break;
}
}
- if (!drm_->PageFlip(flip.crtc_id, flip.framebuffer,
+ if (!drm_->PageFlip(flip.crtc_id, flip.framebuffer, is_sync,
base::Bind(&CrtcController::OnPageFlipEvent,
flip.crtc->AsWeakPtr()))) {
if (errno != EACCES) {
LOG(ERROR) << "Cannot page flip: error='" << strerror(errno) << "'"
<< " crtc=" << flip.crtc_id
- << " framebuffer=" << flip.framebuffer;
+ << " framebuffer=" << flip.framebuffer
+ << " is_sync=" << is_sync;
LOG(ERROR) << "Failed to commit planes";
ret = false;
}

Powered by Google App Engine
This is Rietveld 408576698