diff options
author | achaulk <achaulk@chromium.org> | 2015-05-28 18:36:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-29 01:36:56 +0000 |
commit | c794eda78e9ba3c46b550b433e9fe5a248d40104 (patch) | |
tree | 8054088552654845102920183531ee33d1c12914 /ui/ozone/public | |
parent | bcb07449ce226e9263cf4f2637a1656377782e17 (diff) | |
download | chromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.zip chromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.tar.gz chromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.tar.bz2 |
Adding status to swap buffers completion
This will give us more options than completing all swaps successfully, or losing context
BUG=476966
TBR=torne - approved interface change
Review URL: https://codereview.chromium.org/1084173004
Cr-Commit-Position: refs/heads/master@{#331906}
Diffstat (limited to 'ui/ozone/public')
-rw-r--r-- | ui/ozone/public/surface_ozone_egl.h | 4 |
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 |