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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 7 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
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 7dac123f0d1527cb61fdbaf8986ef12fa4f3ce48..df3a80c2b6ee13ade1d4f38b95722939dd5ee55f 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -187,7 +187,7 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
glFlush();
- base::Closure surface_swap_callback =
+ SwapCompletionCallback surface_swap_callback =
base::Bind(&GLSurfaceOzoneSurfaceless::SwapCompleted,
weak_factory_.GetWeakPtr(), callback);
@@ -298,8 +298,9 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
SubmitFrame();
}
- void SwapCompleted(const SwapCompletionCallback& callback) {
- callback.Run();
+ void SwapCompleted(const SwapCompletionCallback& callback,
+ gfx::SwapResult result) {
+ callback.Run(result);
swap_buffers_pending_ = false;
SubmitFrame();

Powered by Google App Engine
This is Rietveld 408576698