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

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

Issue 1420943003: [Ozone-DRM] Fix double call of swap buffers callback on failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: 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 22e99cb5990ded2476f83bb1360db3801807753a..6490f1dd117cbcb4d030f0ca04514a47f33a0a24 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -153,10 +153,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