blob: 3ee9a29856b77716728b8ce5992538bb9db59096 (
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
28
29
30
31
32
33
34
35
36
|
// 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.
#ifndef UI_GL_VSYNC_PROVIDER_WIN_H_
#define UI_GL_VSYNC_PROVIDER_WIN_H_
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/vsync_provider.h"
#include "ui/gl/gl_export.h"
namespace gl {
class GL_EXPORT VSyncProviderWin : public gfx::VSyncProvider {
public:
explicit VSyncProviderWin(gfx::AcceleratedWidget window);
~VSyncProviderWin() override;
static void InitializeOneOff();
// gfx::VSyncProvider overrides;
void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
bool GetVSyncParametersIfAvailable(base::TimeTicks* timebase,
base::TimeDelta* interval) override;
bool SupportGetVSyncParametersIfAvailable() const override;
bool IsHWClock() const override;
private:
gfx::AcceleratedWidget window_;
DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin);
};
} // namespace gl
#endif // UI_GL_VSYNC_PROVIDER_WIN_H_
|