Index: ui/gl/gl_surface.h |
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
index b67ca69a63968758dd4e77024924d63015311856..277ea749f9b7a94d8bb09ea17049738a69d07fec 100644 |
--- a/ui/gl/gl_surface.h |
+++ b/ui/gl/gl_surface.h |
@@ -15,6 +15,7 @@ |
#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/overlay_transform.h" |
+#include "ui/gfx/swap_result.h" |
#include "ui/gl/gl_export.h" |
#include "ui/gl/gl_implementation.h" |
@@ -73,7 +74,7 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
// FBO. Otherwise returns 0. |
virtual unsigned int GetBackingFrameBufferObject(); |
- typedef base::Callback<void()> SwapCompletionCallback; |
+ typedef base::Callback<void(SwapResult)> SwapCompletionCallback; |
// Swaps front and back buffers. This has no effect for off-screen |
// contexts. On some platforms, we want to send SwapBufferAck only after the |
// surface is displayed on screen. The callback can be used to delay sending |