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

Side by Side Diff: win8/metro_driver/direct3d_helper.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "stdafx.h" 5 #include "stdafx.h"
6 #include <corewindow.h> 6 #include <corewindow.h>
7 #include <windows.applicationmodel.core.h> 7 #include <windows.applicationmodel.core.h>
8 #include <windows.graphics.display.h> 8 #include <windows.graphics.display.h>
9 9
10 #include "win8/metro_driver/direct3d_helper.h" 10 #include "win8/metro_driver/direct3d_helper.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/win/windows_version.h" 12 #include "base/win/windows_version.h"
13 #include "ui/gfx/win/dpi.h" 13 #include "ui/gfx/dpi.h"
14 #include "win8/metro_driver/winrt_utils.h" 14 #include "win8/metro_driver/winrt_utils.h"
15 15
16 namespace { 16 namespace {
17 17
18 void CheckIfFailed(HRESULT hr) { 18 void CheckIfFailed(HRESULT hr) {
19 DCHECK(!FAILED(hr)); 19 DCHECK(!FAILED(hr));
20 if (FAILED(hr)) 20 if (FAILED(hr))
21 DVLOG(0) << "Direct3D call failed, hr = " << hr; 21 DVLOG(0) << "Direct3D call failed, hr = " << hr;
22 } 22 }
23 23
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Prevent DXGI from monitoring an application message queue and thus 155 // Prevent DXGI from monitoring an application message queue and thus
156 // attempt mode changes. For e.g. Alt + Enter by default causes 156 // attempt mode changes. For e.g. Alt + Enter by default causes
157 // DXGI to attempt to take the window fullscreen. 157 // DXGI to attempt to take the window fullscreen.
158 CheckIfFailed(dxgi_factory->MakeWindowAssociation( 158 CheckIfFailed(dxgi_factory->MakeWindowAssociation(
159 window, DXGI_MWA_NO_WINDOW_CHANGES)); 159 window, DXGI_MWA_NO_WINDOW_CHANGES));
160 } 160 }
161 } 161 }
162 } 162 }
163 163
164 } // namespace metro_driver 164 } // namespace metro_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698