summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/vsync_provider_win.h
blob: 6b7e64cadc54c05d086b5aeaad638d8a95e7df0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/vsync_provider.h"
#include "ui/gl/gl_export.h"

namespace gfx {

class GL_EXPORT VSyncProviderWin : public VSyncProvider {
 public:
  explicit VSyncProviderWin(gfx::AcceleratedWidget window);
  ~VSyncProviderWin() override;

  static void InitializeOneOff();

  // VSyncProvider overrides;
  void GetVSyncParameters(const UpdateVSyncCallback& callback) override;

 private:
  gfx::AcceleratedWidget window_;

  DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin);
};

}  // namespace gfx