diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-01 05:21:02 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-01 05:21:02 +0000 |
commit | c455148a05a8bf9e39bd47f0a9433d0a0b1f301c (patch) | |
tree | 982e0fe35adfcd368318b3d1d8f00c7693240996 /ui/gl/gl_surface_egl.h | |
parent | 6f2240ded5a22b6e3f75437966ea632b90362448 (diff) | |
download | chromium_src-c455148a05a8bf9e39bd47f0a9433d0a0b1f301c.zip chromium_src-c455148a05a8bf9e39bd47f0a9433d0a0b1f301c.tar.gz chromium_src-c455148a05a8bf9e39bd47f0a9433d0a0b1f301c.tar.bz2 |
Use DwmGetCompositionTimingInfo to get vsync info on Vista+
DwmGetCompositionTimingInfo works to find out vsync info on Vista+. Luckily using a NULL HWND (required on Win 8.1+) avoids the issue where the window starts flickering.
BUG=291390
Review URL: https://codereview.chromium.org/25102004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_surface_egl.h')
-rw-r--r-- | ui/gl/gl_surface_egl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h index fcac714..68a99af 100644 --- a/ui/gl/gl_surface_egl.h +++ b/ui/gl/gl_surface_egl.h @@ -67,6 +67,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { virtual VSyncProvider* GetVSyncProvider() OVERRIDE; // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. + // Takes ownership of the VSyncProvider. virtual bool Initialize(VSyncProvider* sync_provider); protected: |