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/native_widget_types.h"
9 #include "ui/gfx/vsync_provider.h"
13 class DriSurfaceFactory;
15 class DriVSyncProvider : public gfx::VSyncProvider {
17 DriVSyncProvider(DriSurfaceFactory* factory, gfx::AcceleratedWidget w);
18 virtual ~DriVSyncProvider();
20 virtual void GetVSyncParameters(const UpdateVSyncCallback& callback) OVERRIDE;
23 DriSurfaceFactory* factory_;
24 gfx::AcceleratedWidget widget_;
26 DISALLOW_COPY_AND_ASSIGN(DriVSyncProvider);
31 #endif // UI_OZONE_PLATFORM_IMPL_DRI_VSYNC_PROVIDER_H_