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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/public/common/content_switches.h" | 6 #include "content/public/common/content_switches.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to | 10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 #endif | 962 #endif |
963 | 963 |
964 #if defined(OS_MACOSX) && !defined(OS_IOS) | 964 #if defined(OS_MACOSX) && !defined(OS_IOS) |
965 // Disables support for Core Animation plugins. This is triggered when | 965 // Disables support for Core Animation plugins. This is triggered when |
966 // accelerated compositing is disabled. See http://crbug.com/122430. | 966 // accelerated compositing is disabled. See http://crbug.com/122430. |
967 const char kDisableCoreAnimationPlugins[] = | 967 const char kDisableCoreAnimationPlugins[] = |
968 "disable-core-animation-plugins"; | 968 "disable-core-animation-plugins"; |
969 #endif | 969 #endif |
970 | 970 |
971 #if defined(OS_WIN) | 971 #if defined(OS_WIN) |
| 972 // /prefetch:# arguments to use when launching various process types. It has |
| 973 // been observed that when file reads are consistent for 3 process launches with |
| 974 // the same /prefetch:# argument, the Windows prefetcher starts issuing reads in |
| 975 // batch at process launch. Because reads depend on the process type, the |
| 976 // prefetcher wouldn't be able to observe consistent reads if no /prefetch:# |
| 977 // arguments were used. Note that the browser process has no /prefetch:# |
| 978 // argument; as such all other processes must have one in order to avoid |
| 979 // polluting its profile. Note: # must always be in [1, 8]; otherwise it is |
| 980 // ignored by the Windows prefetcher. |
| 981 const char kPrefetchArgumentRenderer[] = "/prefetch:1"; |
| 982 const char kPrefetchArgumentGpu[] = "/prefetch:2"; |
| 983 const char kPrefetchArgumentPpapi[] = "/prefetch:3"; |
| 984 const char kPrefetchArgumentPpapiBroker[] = "/prefetch:4"; |
| 985 // /prefetch:5, /prefetch:6 and /prefetch:7 are reserved for content embedders |
| 986 // and are not to be used by content itself. |
| 987 |
| 988 // /prefetch:# argument shared by all process types that don't have their own. |
| 989 // It is likely that the prefetcher won't work for these process types as it |
| 990 // won't be able to observe consistent file reads across launches. However, |
| 991 // having a valid prefetch argument for these process types is required to |
| 992 // prevent them from interfering with the prefetch profile of the browser |
| 993 // process. |
| 994 const char kPrefetchArgumentOther[] = "/prefetch:8"; |
| 995 |
972 // Device scale factor passed to certain processes like renderers, etc. | 996 // Device scale factor passed to certain processes like renderers, etc. |
973 const char kDeviceScaleFactor[] = "device-scale-factor"; | 997 const char kDeviceScaleFactor[] = "device-scale-factor"; |
974 | 998 |
975 // Disable the Legacy Window which corresponds to the size of the WebContents. | 999 // Disable the Legacy Window which corresponds to the size of the WebContents. |
976 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 1000 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
977 | 1001 |
978 // Disables the Win32K process mitigation policy for renderer processes. | 1002 // Disables the Win32K process mitigation policy for renderer processes. |
979 const char kDisableWin32kRendererLockDown[] = | 1003 const char kDisableWin32kRendererLockDown[] = |
980 "disable-win32k-renderer-lockdown"; | 1004 "disable-win32k-renderer-lockdown"; |
981 | 1005 |
(...skipping 17 matching lines...) Expand all Loading... |
999 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 1023 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
1000 | 1024 |
1001 // Enables the exporting of the tracing events to ETW. This is only supported on | 1025 // Enables the exporting of the tracing events to ETW. This is only supported on |
1002 // Windows Vista and later. | 1026 // Windows Vista and later. |
1003 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 1027 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
1004 #endif | 1028 #endif |
1005 | 1029 |
1006 // Don't dump stuff here, follow the same order as the header. | 1030 // Don't dump stuff here, follow the same order as the header. |
1007 | 1031 |
1008 } // namespace switches | 1032 } // namespace switches |
OLD | NEW |