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

Unified Diff: ui/gfx/image/image_skia.cc

Issue 326073005: Enable arbitrary scale factor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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/base/resource/resource_bundle_unittest.cc ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia.cc
diff --git a/ui/gfx/image/image_skia.cc b/ui/gfx/image/image_skia.cc
index b37cb7abbeeb2b857e544568b7c96601b2153289..21d08de30037bc1f0af1d9a0dd25fc927c3cbe72 100644
--- a/ui/gfx/image/image_skia.cc
+++ b/ui/gfx/image/image_skia.cc
@@ -319,13 +319,8 @@ ImageSkia ImageSkia::CreateFrom1xBitmap(const SkBitmap& bitmap) {
bool ImageSkia::IsDSFScalingInImageSkiaEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
-#if defined(OS_WIN)
return !command_line->HasSwitch(
- switches::kDisallowArbitraryScaleFactorInImageSkia);
-#else
- return command_line->HasSwitch(
- switches::kAllowArbitraryScaleFactorInImageSkia);
-#endif
+ switches::kDisableArbitraryScaleFactorInImageSkia);
}
scoped_ptr<ImageSkia> ImageSkia::DeepCopy() const {
« no previous file with comments | « ui/base/resource/resource_bundle_unittest.cc ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698