DescriptionAvoid repeated command-line checks for forced DPI scale
Every time |Screen.GetPrimaryDisplay()| is accessed on Android, which can be
multiple times a frame, we're querying the command-line for
kForceDeviceScaleFactor. Instead, cache the result of the query, saving ~8us
(50% of the cost) per GetPrimaryDisplay() call on a typical Android device.
BUG=341613
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255524
Patch Set 1 #Patch Set 2 : Name tweak #Messages
Total messages: 7 (0 generated)
|