Chromium Code Reviews| 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. Also, # must always be in [1, 8]; otherwise it is ignored by the | |
|
gab
2016/01/26 21:40:26
s/Also, /Note: /
gab
2016/01/26 21:40:26
"Note that the browser process has no /prefetch:#
fdoray
2016/01/27 20:12:19
Done.
fdoray
2016/01/27 20:12:19
Done.
| |
| 972 // Windows prefetcher. | |
| 973 const char kPrefetchArgumentRenderer[] = "/prefetch:1"; | |
| 974 const char kPrefetchArgumentGpu[] = "/prefetch:2"; | |
| 975 const char kPrefetchArgumentPpapi[] = "/prefetch:3"; | |
| 976 const char kPrefetchArgumentPpapiBroker[] = "/prefetch:4"; | |
| 977 | |
|
gab
2016/01/26 21:40:26
I would really really like for all of this logic t
fdoray
2016/01/27 20:12:19
Done.
| |
| 978 // /prefetch:# argument shared by all process types that don't have their own. | |
| 979 // It is likely that the prefetcher won't work for these process types as it | |
| 980 // won't be able to observe consistent file reads across launches. However, | |
| 981 // having a valid prefetch argument for these process types prevents them from | |
| 982 // interfering with the prefetch profile of the browser process. | |
|
gab
2016/01/26 21:40:26
How about:
"However having a valid prefetch argum
fdoray
2016/01/27 20:12:19
Done.
| |
| 983 const char kPrefetchArgumentOther[] = "/prefetch:8"; | |
| 984 | |
| 965 // Device scale factor passed to certain processes like renderers, etc. | 985 // Device scale factor passed to certain processes like renderers, etc. |
| 966 const char kDeviceScaleFactor[] = "device-scale-factor"; | 986 const char kDeviceScaleFactor[] = "device-scale-factor"; |
| 967 | 987 |
| 968 // Disable the Legacy Window which corresponds to the size of the WebContents. | 988 // Disable the Legacy Window which corresponds to the size of the WebContents. |
| 969 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 989 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
| 970 | 990 |
| 971 // Disables the Win32K process mitigation policy for renderer processes. | 991 // Disables the Win32K process mitigation policy for renderer processes. |
| 972 const char kDisableWin32kRendererLockDown[] = | 992 const char kDisableWin32kRendererLockDown[] = |
| 973 "disable-win32k-renderer-lockdown"; | 993 "disable-win32k-renderer-lockdown"; |
| 974 | 994 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 992 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 1012 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
| 993 | 1013 |
| 994 // Enables the exporting of the tracing events to ETW. This is only supported on | 1014 // Enables the exporting of the tracing events to ETW. This is only supported on |
| 995 // Windows Vista and later. | 1015 // Windows Vista and later. |
| 996 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 1016 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
| 997 #endif | 1017 #endif |
| 998 | 1018 |
| 999 // Don't dump stuff here, follow the same order as the header. | 1019 // Don't dump stuff here, follow the same order as the header. |
| 1000 | 1020 |
| 1001 } // namespace switches | 1021 } // namespace switches |
| OLD | NEW |