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

Unified Diff: ui/ozone/platform/drm/gpu/crtc_controller.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo Created 5 years, 7 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/cast/surface_ozone_egl_cast.cc ('k') | ui/ozone/platform/drm/gpu/drm_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/crtc_controller.cc
diff --git a/ui/ozone/platform/drm/gpu/crtc_controller.cc b/ui/ozone/platform/drm/gpu/crtc_controller.cc
index 6aa5795a6db2cb2176e92d029a495daee5904109..cf82f68521af49d9d686ca02ff856b3be51b5ddf 100644
--- a/ui/ozone/platform/drm/gpu/crtc_controller.cc
+++ b/ui/ozone/platform/drm/gpu/crtc_controller.cc
@@ -76,7 +76,7 @@ bool CrtcController::SchedulePageFlip(
const OverlayPlane* primary = OverlayPlane::GetPrimaryPlane(overlays);
if (!primary) {
LOG(ERROR) << "No primary plane to display on crtc " << crtc_;
- page_flip_request->Signal();
+ page_flip_request->Signal(gfx::SwapResult::SWAP_ACK);
return true;
}
DCHECK(primary->buffer.get());
@@ -86,19 +86,19 @@ bool CrtcController::SchedulePageFlip(
<< mode_.hdisplay << "x" << mode_.vdisplay << " got "
<< primary->buffer->GetSize().ToString() << " for"
<< " crtc=" << crtc_ << " connector=" << connector_;
- page_flip_request->Signal();
+ page_flip_request->Signal(gfx::SwapResult::SWAP_ACK);
return true;
}
if (!drm_->plane_manager()->AssignOverlayPlanes(plane_list, overlays, crtc_,
this)) {
PLOG(ERROR) << "Failed to assign overlay planes for crtc " << crtc_;
- page_flip_request->Signal();
+ page_flip_request->Signal(gfx::SwapResult::SWAP_FAILED);
return false;
}
if (test_only) {
- page_flip_request->Signal();
+ page_flip_request->Signal(gfx::SwapResult::SWAP_ACK);
} else {
pending_planes_ = overlays;
page_flip_request_ = page_flip_request;
@@ -164,7 +164,7 @@ void CrtcController::SignalPageFlipRequest() {
// locally to avoid deleting the object we are making a call on.
scoped_refptr<PageFlipRequest> last_request;
last_request.swap(page_flip_request_);
- last_request->Signal();
+ last_request->Signal(gfx::SwapResult::SWAP_ACK);
}
}
« no previous file with comments | « ui/ozone/platform/cast/surface_ozone_egl_cast.cc ('k') | ui/ozone/platform/drm/gpu/drm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698