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

Unified Diff: ui/gl/gl_surface.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 47690924fa7d4f06da4cc1f033f23823126b8ddb..6d04192b5cabd1c55fc92c92973d05782bb8459a 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -195,7 +195,7 @@ unsigned int GLSurface::GetBackingFrameBufferObject() {
bool GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) {
DCHECK(!IsSurfaceless());
bool success = SwapBuffers();
- callback.Run();
+ callback.Run(SwapAck);
return success;
}
@@ -209,7 +209,7 @@ bool GLSurface::PostSubBufferAsync(int x,
int height,
const SwapCompletionCallback& callback) {
bool success = PostSubBuffer(x, y, width, height);
- callback.Run();
+ callback.Run(SwapAck);
return success;
}

Powered by Google App Engine
This is Rietveld 408576698