summaryrefslogtreecommitdiffstats
path: root/ui/ozone/public
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ozone/public')
-rw-r--r--ui/ozone/public/surface_ozone_egl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ozone/public/surface_ozone_egl.h b/ui/ozone/public/surface_ozone_egl.h
index 1714dd9..3056dec 100644
--- a/ui/ozone/public/surface_ozone_egl.h
+++ b/ui/ozone/public/surface_ozone_egl.h
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/overlay_transform.h"
+#include "ui/gfx/swap_result.h"
#include "ui/ozone/ozone_base_export.h"
namespace gfx {
@@ -19,6 +20,8 @@ class VSyncProvider;
namespace ui {
class NativePixmap;
+typedef base::Callback<void(gfx::SwapResult)> SwapCompletionCallback;
+
// The platform-specific part of an EGL surface.
//
// This class owns any bits that the ozone implementation needs freed when
@@ -39,7 +42,6 @@ class OZONE_BASE_EXPORT SurfaceOzoneEGL {
// be used to present the new front buffer if the platform requires this.
virtual bool OnSwapBuffers() = 0;
- typedef base::Closure SwapCompletionCallback;
// Called after we swap buffers. This is usually a no-op but can
// be used to present the new front buffer if the platform requires this.
// The callback should be run on the calling thread