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

Side by Side Diff: content/public/common/content_switches.cc

Issue 308003020: Pass the device scale factor in the command line to renderer processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted changes to dpi.cc 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 // When using CPU rasterizing generate low resolution tiling. Low res 404 // When using CPU rasterizing generate low resolution tiling. Low res
405 // tiles may be displayed during fast scrolls especially on slower devices. 405 // tiles may be displayed during fast scrolls especially on slower devices.
406 const char kEnableLowResTiling[] = "enable-low-res-tiling"; 406 const char kEnableLowResTiling[] = "enable-low-res-tiling";
407 407
408 // See comment for kEnableCompositingForFixedPosition. 408 // See comment for kEnableCompositingForFixedPosition.
409 const char kEnableHighDpiCompositingForFixedPosition[] = 409 const char kEnableHighDpiCompositingForFixedPosition[] =
410 "enable-high-dpi-fixed-position-compositing"; 410 "enable-high-dpi-fixed-position-compositing";
411 411
412 #if defined(OS_WIN) 412 #if defined(OS_WIN)
413 // Device scale factor passed to certain processes like renderers, etc.
414 const char kDeviceScaleFactor[] = "device-scale-factor";
415
413 // Disable the Legacy Window which corresponds to the size of the WebContents. 416 // Disable the Legacy Window which corresponds to the size of the WebContents.
414 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 417 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
415 418
416 // Enables the DirectWrite font rendering system on windows. 419 // Enables the DirectWrite font rendering system on windows.
417 const char kEnableDirectWrite[] = "enable-direct-write"; 420 const char kEnableDirectWrite[] = "enable-direct-write";
418 421
419 // Use high resolution timers for TimeTicks. 422 // Use high resolution timers for TimeTicks.
420 const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; 423 const char kEnableHighResolutionTime[] = "enable-high-resolution-time";
421 424
422 // Enable the Win32K process mitigation policy for renderer processes which 425 // Enable the Win32K process mitigation policy for renderer processes which
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 981
979 // Disables support for Core Animation plugins. This is triggered when 982 // Disables support for Core Animation plugins. This is triggered when
980 // accelerated compositing is disabled. See http://crbug.com/122430 . 983 // accelerated compositing is disabled. See http://crbug.com/122430 .
981 const char kDisableCoreAnimationPlugins[] = 984 const char kDisableCoreAnimationPlugins[] =
982 "disable-core-animation-plugins"; 985 "disable-core-animation-plugins";
983 #endif 986 #endif
984 987
985 // Don't dump stuff here, follow the same order as the header. 988 // Don't dump stuff here, follow the same order as the header.
986 989
987 } // namespace switches 990 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698