1 // Copyright 2013 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. 4 5 #ifndef UI_GFX_OZONE_IMPL_DRI_VSYNC_PROVIDER_H_ 6 #define UI_GFX_OZONE_IMPL_DRI_VSYNC_PROVIDER_H_ 7 8 #include "ui/gfx/vsync_provider.h" 9 10 namespace gfx { 11 12 class HardwareDisplayController; 13 14 class DriVSyncProvider : public VSyncProvider { 15 public: 16 DriVSyncProvider(HardwareDisplayController* controller); 17 virtual ~DriVSyncProvider(); 18 19 virtual void GetVSyncParameters(const UpdateVSyncCallback& callback) OVERRIDE; 20 21 private: 22 HardwareDisplayController* controller_; 23 24 DISALLOW_COPY_AND_ASSIGN(DriVSyncProvider); 25 }; 26 27 } // namespace gfx 28 29 #endif // UI_GFX_OZONE_IMPL_DRI_VSYNC_PROVIDER_H_ 30