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
3 // found in the LICENSE file.
5 #ifndef UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_
6 #define UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_
8 #include "ui/gfx/vsync_provider.h"
12 class DriWindowDelegate;
14 class DriVSyncProvider : public gfx::VSyncProvider {
16 DriVSyncProvider(DriWindowDelegate* window_delegate);
17 ~DriVSyncProvider() override;
19 void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
22 DriWindowDelegate* window_delegate_; // Not owned.
24 DISALLOW_COPY_AND_ASSIGN(DriVSyncProvider);
29 #endif // UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_