Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: ui/gl/vsync_provider_win.h

Issue 2681033011: Changed GpuVSyncProvider to implement gfx::VSyncProvider (Closed)
Patch Set: Addressed CR feedback Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/image_transport_surface_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GL_VSYNC_PROVIDER_WIN_H_
6 #define UI_GL_VSYNC_PROVIDER_WIN_H_
7
5 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
6 #include "ui/gfx/vsync_provider.h" 9 #include "ui/gfx/vsync_provider.h"
7 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
8 11
9 namespace gl { 12 namespace gl {
10 13
11 class GL_EXPORT VSyncProviderWin : public gfx::VSyncProvider { 14 class GL_EXPORT VSyncProviderWin : public gfx::VSyncProvider {
12 public: 15 public:
13 explicit VSyncProviderWin(gfx::AcceleratedWidget window); 16 explicit VSyncProviderWin(gfx::AcceleratedWidget window);
14 ~VSyncProviderWin() override; 17 ~VSyncProviderWin() override;
15 18
16 static void InitializeOneOff(); 19 static void InitializeOneOff();
17 20
18 // gfx::VSyncProvider overrides; 21 // gfx::VSyncProvider overrides;
19 void GetVSyncParameters(const UpdateVSyncCallback& callback) override; 22 void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
20 23
21 private: 24 private:
22 gfx::AcceleratedWidget window_; 25 gfx::AcceleratedWidget window_;
23 26
24 DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin); 27 DISALLOW_COPY_AND_ASSIGN(VSyncProviderWin);
25 }; 28 };
26 29
27 } // namespace gl 30 } // namespace gl
31
32 #endif // UI_GL_VSYNC_PROVIDER_WIN_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698