OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #ifndef UI_GL_VSYNC_PROVIDER_WIN_H_ |
| 6 #define UI_GL_VSYNC_PROVIDER_WIN_H_ |
| 7 |
5 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
6 #include "ui/gfx/vsync_provider.h" | 9 #include "ui/gfx/vsync_provider.h" |
7 #include "ui/gl/gl_export.h" | 10 #include "ui/gl/gl_export.h" |
8 | 11 |
9 namespace gl { | 12 namespace gl { |
10 | 13 |
11 class GL_EXPORT VSyncProviderWin : public gfx::VSyncProvider { | 14 class GL_EXPORT VSyncProviderWin : public gfx::VSyncProvider { |
12 public: | 15 public: |
13 explicit VSyncProviderWin(gfx::AcceleratedWidget window); | 16 explicit VSyncProviderWin(gfx::AcceleratedWidget window); |
14 ~VSyncProviderWin() override; | 17 ~VSyncProviderWin() override; |
15 | 18 |
16 static void InitializeOneOff(); | 19 static void InitializeOneOff(); |
17 | 20 |
18 // gfx::VSyncProvider overrides; | 21 // gfx::VSyncProvider overrides; |
19 void GetVSyncParameters(const UpdateVSyncCallback& callback) override; | 22 void GetVSyncParameters(const UpdateVSyncCallback& callback) override; |
20 | 23 |
21 private: | 24 private: |
22 gfx::AcceleratedWidget window_; | 25 gfx::AcceleratedWidget window_; |
23 | 26 |
24 DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin); | 27 DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin); |
25 }; | 28 }; |
26 | 29 |
27 } // namespace gl | 30 } // namespace gl |
| 31 |
| 32 #endif // UI_GL_VSYNC_PROVIDER_WIN_H_ |
OLD | NEW |