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

Unified Diff: ui/gl/gl_surface_ozone.cc

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 | « ui/gfx/ozone/surface_ozone_egl.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 8d9e6ad1c78d3b9daf81df142d1782acc2a89344..3fa5958aa1508f8130ce1de04db367a5ea97a8a4 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -31,6 +31,12 @@ class GL_EXPORT GLSurfaceOzoneEGL : public NativeViewGLSurfaceEGL {
return NativeViewGLSurfaceEGL::Resize(size);
}
+ virtual bool SwapBuffers() OVERRIDE {
+ if (!NativeViewGLSurfaceEGL::SwapBuffers())
+ return false;
+
+ return ozone_surface_->OnSwapBuffers();
+ }
private:
virtual ~GLSurfaceOzoneEGL() {
« no previous file with comments | « ui/gfx/ozone/surface_ozone_egl.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698