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

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

Issue 300023006: ozone: Add OnSwapBuffers hook to SurfaceOzoneEGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | « no previous file | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/surface_ozone_egl.h
diff --git a/ui/gfx/ozone/surface_ozone_egl.h b/ui/gfx/ozone/surface_ozone_egl.h
index 7dd89fb31e6b97f7f4c5cc5509930c646e92943a..97c076e80f0269c73d45dee23fb70b3523d9e58a 100644
--- a/ui/gfx/ozone/surface_ozone_egl.h
+++ b/ui/gfx/ozone/surface_ozone_egl.h
@@ -30,6 +30,10 @@ class GFX_EXPORT SurfaceOzoneEGL {
// size.
virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) = 0;
+ // 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.
+ virtual bool OnSwapBuffers() = 0;
+
// Returns a gfx::VsyncProvider for this surface. Note that this may be
// called after we have entered the sandbox so if there are operations (e.g.
// opening a file descriptor providing vsync events) that must be done
« no previous file with comments | « no previous file | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698