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

Unified Diff: ui/base/resource/resource_bundle_win.cc

Issue 211493009: Ensure that extension resources are loaded with the correct scaling applied on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Compositing browser tests high dpi Created 6 years, 9 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_win.cc
diff --git a/ui/base/resource/resource_bundle_win.cc b/ui/base/resource/resource_bundle_win.cc
index 5e0fd2214f4d0bbed79545e5cf3de8bebebc80e7..13f74e032f8e8adfea53f766ff86d2a15d4b4a69 100644
--- a/ui/base/resource/resource_bundle_win.cc
+++ b/ui/base/resource/resource_bundle_win.cc
@@ -93,12 +93,6 @@ SkBitmap ResourceBundle::PlatformScaleImage(const SkBitmap& image,
return scaled_image;
}
-float ResourceBundle::PlatformGetImageScale() {
- if (!gfx::IsHighDPIEnabled())
- return ui::GetImageScale(GetMaxScaleFactor());
- return gfx::win::GetDeviceScaleFactor();
-}
-
void SetResourcesDataDLL(HINSTANCE handle) {
resources_data_dll = handle;
}
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698