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

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

Issue 2945893002: ozone: Call glFlush before submitting a buffer. (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_surfaceless.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc b/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc
index 4b4913b78f7cf8d7b718e263c47cb9ca62a820b2..7c3cba72064eaf07345776b56d1914d754098089 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc
@@ -103,6 +103,9 @@ void GbmSurfaceless::SwapBuffersAsync(const SwapCompletionCallback& callback) {
return;
}
+ // TODO(dcastagna): remove glFlush since eglImageFlushExternalEXT called on
+ // the image should be enough (crbug.com/720045).
+ glFlush();
unsubmitted_frames_.back()->Flush();
SwapCompletionCallback surface_swap_callback = base::Bind(
« 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