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

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

Issue 10546158: Remove --default-device-scale-factor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/aura/monitor_manager.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_aurax11.cc
diff --git a/ui/base/resource/resource_bundle_aurax11.cc b/ui/base/resource/resource_bundle_aurax11.cc
index 95aad1e9be0dacbaa552b4c0ddb53ec13685537a..877ceb162fce258e23045d194f1733d082909320 100644
--- a/ui/base/resource/resource_bundle_aurax11.cc
+++ b/ui/base/resource/resource_bundle_aurax11.cc
@@ -26,8 +26,8 @@ FilePath GetResourcesPakFilePath(const std::string& pak_name) {
}
bool ShouldLoad2xResources() {
- return (gfx::Display::GetDefaultDeviceScaleFactor() > 1.0f ||
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoad2xResources));
+ return gfx::Display::GetForcedDeviceScaleFactor() > 1.0f ||
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoad2xResources);
}
} // namespace
@@ -38,9 +38,6 @@ void ResourceBundle::LoadCommonResources() {
// Always load the 1x data pack first as the 2x data pack contains both 1x and
// 2x images. The 1x data pack only has 1x images, thus passes in an accurate
// scale factor to gfx::ImageSkia::AddBitmapForScale.
- // TODO(pkotwicz): Fix this in cases where it is intended for the 2x bitmap
- // not to be 2 * size of the 1x bitmap for HDA.
- // TODO(oshima): Fix this where it is unintended.
AddDataPack(GetResourcesPakFilePath("chrome.pak"),
SCALE_FACTOR_100P);
« no previous file with comments | « ui/aura/monitor_manager.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698