| Index: ui/gl/gl_surface_egl.h
|
| diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
|
| index 720c7dd9decb49e6ffc7dd6744a00023992f56af..b05f9bfc1ae83cc86ea26026e9eeef64af7fa1fe 100644
|
| --- a/ui/gl/gl_surface_egl.h
|
| +++ b/ui/gl/gl_surface_egl.h
|
| @@ -13,7 +13,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/time/time.h"
|
| -#include "ui/gfx/size.h"
|
| +#include "ui/gfx/geometry/size.h"
|
| #include "ui/gfx/vsync_provider.h"
|
| #include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_surface.h"
|
| @@ -83,6 +83,8 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
|
|
|
| EGLNativeWindowType window_;
|
|
|
| + void OnSetSwapInterval(int interval) override;
|
| +
|
| private:
|
| EGLSurface surface_;
|
| bool supports_post_sub_buffer_;
|
| @@ -91,6 +93,17 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
|
|
|
| scoped_ptr<VSyncProvider> vsync_provider_;
|
|
|
| + int swap_interval_;
|
| +
|
| +#if defined(OS_WIN)
|
| + bool vsync_override_;
|
| +
|
| + unsigned int swap_generation_;
|
| + static unsigned int current_swap_generation_;
|
| + static unsigned int swaps_this_generation_;
|
| + static unsigned int last_multiswap_generation_;
|
| +#endif
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL);
|
| };
|
|
|
|
|