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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 1475683002: ozone: Fix flow control regression in ARM swap buffers code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 231f6c53cdb443be28d8a66b585f188dccb9a40d..459ec7231a1919e0ea9f4fb2a47ba99f727209f4 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -366,10 +366,12 @@ void GLSurfaceOzoneSurfaceless::SwapBuffersAsync(
base::WorkerPool::PostTaskAndReply(FROM_HERE, fence_wait_task,
fence_retired_callback, false);
- } else if (ozone_surface_->IsUniversalDisplayLinkDevice()) {
- glFinish();
+ return; // Defer frame submission until fence signals.
}
+ if (ozone_surface_->IsUniversalDisplayLinkDevice())
+ glFinish();
+
frame->ready = true;
SubmitFrame();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698