| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |