Index: ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
index 2aa2f113a5c950ea640b59bb73110923b9f7d7de..21495f66a798287c6980d47b5726986e2edd14aa 100644 |
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
@@ -46,7 +46,7 @@ bool HardwareDisplayPlaneManagerLegacy::Commit( |
PLOG(ERROR) << "Cannot display plane on overlay: crtc=" << flip.crtc |
<< " plane=" << plane.plane; |
ret = false; |
- flip.crtc->PageFlipFailed(); |
+ flip.crtc->SignalPageFlipRequest(gfx::SwapResult::SWAP_FAILED); |
break; |
} |
} |
@@ -66,7 +66,8 @@ bool HardwareDisplayPlaneManagerLegacy::Commit( |
<< " framebuffer=" << flip.framebuffer; |
ret = false; |
} |
- flip.crtc->PageFlipFailed(); |
+ flip.crtc->SignalPageFlipRequest(ret ? gfx::SwapResult::SWAP_ACK |
+ : gfx::SwapResult::SWAP_FAILED); |
} |
} |
// For each element in |old_plane_list|, if it hasn't been reclaimed (by |