Closed Bug 851029 Opened 11 years ago Closed 5 years ago

cache the DisplayProperties interface in metro widget code

Categories

(Core Graveyard :: Widget: WinRT, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jfkthame, Unassigned)

Details

We access Windows.Graphics.Display.DisplayProperties in several places to retrieve the current scaling factor and display DPI. We could cache this to minimize the cost of accessing those properties.

See usage in MetroWidget.cpp and MetroUtils.cpp (just added in bug 816709), as well as existing users in FrameworkView.cpp and UIABridge.cpp.
OS: Windows 8 Metro → Windows 8.1
This component is no longer valid. Closing bug as INVALID.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.