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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « ui/gl/vsync_provider_win.h ('k') | ui/gl/wgl_api_unittest.cc » ('j') | 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 #include "ui/gl/vsync_provider_win.h" 5 #include "ui/gl/vsync_provider_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
11 #include "base/win/windows_version.h" 11 #include "base/win/windows_version.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 13
14 namespace gfx { 14 namespace gl {
15 15
16 namespace { 16 namespace {
17 bool g_use_dwm_vsync; 17 bool g_use_dwm_vsync;
18 } // namespace 18 } // namespace
19 19
20 VSyncProviderWin::VSyncProviderWin(gfx::AcceleratedWidget window) 20 VSyncProviderWin::VSyncProviderWin(gfx::AcceleratedWidget window)
21 : window_(window) { 21 : window_(window) {
22 } 22 }
23 23
24 VSyncProviderWin::~VSyncProviderWin() {} 24 VSyncProviderWin::~VSyncProviderWin() {}
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 base::Time::kMicrosecondsPerSecond); 118 base::Time::kMicrosecondsPerSecond);
119 } 119 }
120 } 120 }
121 } 121 }
122 122
123 if (interval.ToInternalValue() != 0) { 123 if (interval.ToInternalValue() != 0) {
124 callback.Run(timebase, interval); 124 callback.Run(timebase, interval);
125 } 125 }
126 } 126 }
127 127
128 } // namespace gfx 128 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/vsync_provider_win.h ('k') | ui/gl/wgl_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698