Index: ui/ozone/platform/drm/gpu/drm_window.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_window.cc b/ui/ozone/platform/drm/gpu/drm_window.cc |
index 2091636d22dc4ea5e074f896af9f95879bccb063..3c330be7b339c22abdad6ea45eb363c62a2f51c7 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_window.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc |
@@ -127,14 +127,16 @@ void DrmWindow::MoveCursor(const gfx::Point& location) { |
} |
void DrmWindow::SchedulePageFlip(const std::vector<OverlayPlane>& planes, |
- const SwapCompletionCallback& callback) { |
+ const SwapCompletionCallback& callback, |
+ ScanoutBufferGenerator* buffer_generator) { |
if (force_buffer_reallocation_) { |
force_buffer_reallocation_ = false; |
callback.Run(gfx::SwapResult::SWAP_NAK_RECREATE_BUFFERS); |
return; |
} |
- last_submitted_planes_ = planes; |
+ last_submitted_planes_ = |
+ overlay_validator_->ValidatePlanesForPageFlip(planes, buffer_generator); |
if (!controller_) { |
callback.Run(gfx::SwapResult::SWAP_ACK); |