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

Unified Diff: win8/metro_driver/direct3d_helper.cc

Issue 1255073002: clang/win: Fix most -Wunused-function warnings in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« content/common/sandbox_win.cc ('K') | « ui/base/test/ui_controls_internal_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/direct3d_helper.cc
diff --git a/win8/metro_driver/direct3d_helper.cc b/win8/metro_driver/direct3d_helper.cc
index 722adc4b119ede810d17946f9c8106eaa82c34a5..b19c57d1f1bc2a52a11bcab597bd7743df4537db 100644
--- a/win8/metro_driver/direct3d_helper.cc
+++ b/win8/metro_driver/direct3d_helper.cc
@@ -21,20 +21,6 @@ void CheckIfFailed(HRESULT hr) {
DVLOG(0) << "Direct3D call failed, hr = " << hr;
}
-// TODO(ananta)
-// This function does not return the correct value as the IDisplayProperties
-// interface does not work correctly in Windows 8 in metro mode. Needs
-// more investigation.
-float GetLogicalDpi() {
- mswr::ComPtr<wingfx::Display::IDisplayPropertiesStatics> display_properties;
- CheckIfFailed(winrt_utils::CreateActivationFactory(
- RuntimeClass_Windows_Graphics_Display_DisplayProperties,
- display_properties.GetAddressOf()));
- float dpi = 0.0;
- CheckIfFailed(display_properties->get_LogicalDpi(&dpi));
- return dpi;
-}
-
float ConvertDipsToPixels(float dips) {
return floor(dips * gfx::GetDPIScale() + 0.5f);
}
« content/common/sandbox_win.cc ('K') | « ui/base/test/ui_controls_internal_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698