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

Unified Diff: ui/ozone/public/surface_ozone_egl.h

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo 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
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_ozone_egl.h
diff --git a/ui/ozone/public/surface_ozone_egl.h b/ui/ozone/public/surface_ozone_egl.h
index 1714dd9ea7d901ec5d20e93278f05278b0ec9cc7..3056deca1f003acd66edbd968f7dd1bee1b6b2b8 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
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698