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

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

Issue 1417423002: [Ozone-DRM] Fix double call of swap buffers callback on failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 2 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 | « no previous file | ui/ozone/platform/drm/gpu/drm_window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ef04bd09484b9e9a6be09e87f194ac506737cff..0a933a1abd7c117ccecf808eec851612ed42ab0c 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -140,10 +140,9 @@ void DrmWindow::SchedulePageFlip(const std::vector<OverlayPlane>& planes,
return;
}
- if (!controller_->SchedulePageFlip(last_submitted_planes_,
- false /* test_only */, callback)) {
- callback.Run(gfx::SwapResult::SWAP_FAILED);
- }
+ // Controller should call the callback in all cases.
+ controller_->SchedulePageFlip(last_submitted_planes_, false /* test_only */,
+ callback);
}
std::vector<OverlayCheck_Params> DrmWindow::TestPageFlip(
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698