OLD | NEW |
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 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to | 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to |
10 // have an effect. 0 disables MSAA. | 10 // have an effect. 0 disables MSAA. |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 "disable-core-animation-plugins"; | 974 "disable-core-animation-plugins"; |
975 #endif | 975 #endif |
976 | 976 |
977 #if defined(OS_WIN) | 977 #if defined(OS_WIN) |
978 // Device scale factor passed to certain processes like renderers, etc. | 978 // Device scale factor passed to certain processes like renderers, etc. |
979 const char kDeviceScaleFactor[] = "device-scale-factor"; | 979 const char kDeviceScaleFactor[] = "device-scale-factor"; |
980 | 980 |
981 // Disable the Legacy Window which corresponds to the size of the WebContents. | 981 // Disable the Legacy Window which corresponds to the size of the WebContents. |
982 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 982 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
983 | 983 |
984 // Enables or disables the Win32K process mitigation policy for renderer | 984 // Disables the Win32K process mitigation policy for renderer processes. |
985 // processes which prevents them from invoking user32 and gdi32 system calls | |
986 // which enter the kernel. This is only supported on Windows 8 and beyond. | |
987 const char kDisableWin32kRendererLockDown[] = | 985 const char kDisableWin32kRendererLockDown[] = |
988 "disable-win32k-renderer-lockdown"; | 986 "disable-win32k-renderer-lockdown"; |
989 const char kEnableWin32kRendererLockDown[] = | |
990 "enable-win32k-renderer-lockdown"; | |
991 | 987 |
992 // DirectWrite FontCache is shared by browser to renderers using shared memory. | 988 // DirectWrite FontCache is shared by browser to renderers using shared memory. |
993 // This switch allows us to pass the shared memory handle to the renderer. | 989 // This switch allows us to pass the shared memory handle to the renderer. |
994 const char kFontCacheSharedHandle[] = "font-cache-shared-handle"; | 990 const char kFontCacheSharedHandle[] = "font-cache-shared-handle"; |
995 | 991 |
996 // Sets the free memory thresholds below which the system is considered to be | 992 // Sets the free memory thresholds below which the system is considered to be |
997 // under moderate and critical memory pressure. Used in the browser process, | 993 // under moderate and critical memory pressure. Used in the browser process, |
998 // and ignored if invalid. Specified as a pair of comma separated integers. | 994 // and ignored if invalid. Specified as a pair of comma separated integers. |
999 // See base/win/memory_pressure_monitor.cc for defaults. | 995 // See base/win/memory_pressure_monitor.cc for defaults. |
1000 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 996 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
1001 | 997 |
1002 // Enables the exporting of the tracing events to ETW. This is only supported on | 998 // Enables the exporting of the tracing events to ETW. This is only supported on |
1003 // Windows Vista and later. | 999 // Windows Vista and later. |
1004 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 1000 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
1005 #endif | 1001 #endif |
1006 | 1002 |
1007 // Enables the use of NPAPI plugins. | 1003 // Enables the use of NPAPI plugins. |
1008 const char kEnableNpapi[] = "enable-npapi"; | 1004 const char kEnableNpapi[] = "enable-npapi"; |
1009 | 1005 |
1010 // Don't dump stuff here, follow the same order as the header. | 1006 // Don't dump stuff here, follow the same order as the header. |
1011 | 1007 |
1012 } // namespace switches | 1008 } // namespace switches |
OLD | NEW |