Atomic: Notify Watcher to observe device fd
[chromium-blink-merge.git] / ui / ozone / platform / drm / gpu / drm_vsync_provider.h
blobdb51f1bde141a17b08b0ad9bd69d89732519ca3a
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_DRM_VSYNC_PROVIDER_H_
6 #define UI_OZONE_PLATFORM_IMPL_DRM_VSYNC_PROVIDER_H_
8 #include "ui/gfx/vsync_provider.h"
10 namespace ui {
12 class DrmWindow;
14 class DrmVSyncProvider : public gfx::VSyncProvider {
15 public:
16 DrmVSyncProvider(DrmWindow* window);
17 ~DrmVSyncProvider() override;
19 void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
21 private:
22 DrmWindow* window_; // Not owned.
24 DISALLOW_COPY_AND_ASSIGN(DrmVSyncProvider);
27 } // namespace ui
29 #endif // UI_OZONE_PLATFORM_IMPL_DRM_VSYNC_PROVIDER_H_