OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ | 5 #ifndef UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ |
6 #define UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ | 6 #define UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ |
7 | 7 |
8 #include "ui/gfx/vsync_provider.h" | 8 #include "ui/gfx/vsync_provider.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 class DriWindowDelegate; | 12 class DriWindowDelegate; |
13 | 13 |
14 class DriVSyncProvider : public gfx::VSyncProvider { | 14 class DriVSyncProvider : public gfx::VSyncProvider { |
15 public: | 15 public: |
16 DriVSyncProvider(DriWindowDelegate* window_delegate); | 16 DriVSyncProvider(DriWindowDelegate* window_delegate); |
17 virtual ~DriVSyncProvider(); | 17 virtual ~DriVSyncProvider(); |
18 | 18 |
19 virtual void GetVSyncParameters(const UpdateVSyncCallback& callback) OVERRIDE; | 19 virtual void GetVSyncParameters(const UpdateVSyncCallback& callback) override; |
20 | 20 |
21 private: | 21 private: |
22 DriWindowDelegate* window_delegate_; // Not owned. | 22 DriWindowDelegate* window_delegate_; // Not owned. |
23 | 23 |
24 DISALLOW_COPY_AND_ASSIGN(DriVSyncProvider); | 24 DISALLOW_COPY_AND_ASSIGN(DriVSyncProvider); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace ui | 27 } // namespace ui |
28 | 28 |
29 #endif // UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ | 29 #endif // UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_ |
OLD | NEW |