DescriptionEnsure that extension resources are loaded with the correct scaling applied on Windows.
We were loading the icons with the scaling factor based on the loaded resource pak, which works on
all platforms except on Windows with high dpi enabled with dpi settings other than 100% or 200%.
Fix is to pass in the correct scaling factor when loading these resources like icons etc which ensures that
they get resized correctly.
I made the PlatformGetImageScale function in the ResourceBundle class static and passed in the loaded scale factor
to it. This function returns the correct scale to be used as before. We call this function from the extensions resource
loading code.
There may be other places which need similar fixes. Will address those in upcoming CL's
BUG=351170, 354706
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260254
Patch Set 1 #Patch Set 2 : Reverted DCHECK #Patch Set 3 : Fix try server errors #
Total comments: 2
Patch Set 4 : Moved the scale factor determining code to GetImageScale #Patch Set 5 : Removed unnecessary include #
Total comments: 2
Patch Set 6 : Removed the GetImageScaleForScaleFactor function #
Total comments: 2
Patch Set 7 : Code review comments #Patch Set 8 : #Patch Set 9 : Fixed Compositing browser tests high dpi #
Messages
Total messages: 11 (0 generated)
|