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