diff options
author | thakis <thakis@chromium.org> | 2015-07-28 13:47:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-28 20:48:18 +0000 |
commit | 84dff94bdb4c72490263b1dcba295dd2ff6dbc9f (patch) | |
tree | cd10e1866aea439633c0deffbf9beb40c8ab2398 /win8 | |
parent | 75cdcc16d8acfbe8b5b9dcded69807cb3e9d0315 (diff) | |
download | chromium_src-84dff94bdb4c72490263b1dcba295dd2ff6dbc9f.zip chromium_src-84dff94bdb4c72490263b1dcba295dd2ff6dbc9f.tar.gz chromium_src-84dff94bdb4c72490263b1dcba295dd2ff6dbc9f.tar.bz2 |
clang/win: Fix most -Wunused-function warnings in Chromium code.
No intended behavior change.
BUG=505316
TBR=armansito
Review URL: https://codereview.chromium.org/1255073002
Cr-Commit-Position: refs/heads/master@{#340761}
Diffstat (limited to 'win8')
-rw-r--r-- | win8/metro_driver/direct3d_helper.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/win8/metro_driver/direct3d_helper.cc b/win8/metro_driver/direct3d_helper.cc index 722adc4..b19c57d 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); } |