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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 58 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
59 // This is controlled by policy and is kept separate from the other | 59 // This is controlled by policy and is kept separate from the other |
60 // enable/disable switches to avoid accidentally regressing the policy | 60 // enable/disable switches to avoid accidentally regressing the policy |
61 // support for controlling access to these APIs. | 61 // support for controlling access to these APIs. |
62 const char kDisable3DAPIs[] = "disable-3d-apis"; | 62 const char kDisable3DAPIs[] = "disable-3d-apis"; |
63 | 63 |
64 // Disable gpu-accelerated 2d canvas. | 64 // Disable gpu-accelerated 2d canvas. |
65 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; | 65 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
66 | 66 |
| 67 // Disable hardware acceleration of mjpeg decode for captured frame, where |
| 68 // available. |
| 69 const char kDisableAcceleratedMjpegDecode[] = |
| 70 "disable-accelerated-mjpeg-decode"; |
| 71 |
67 // Disables hardware acceleration of video decode, where available. | 72 // Disables hardware acceleration of video decode, where available. |
68 const char kDisableAcceleratedVideoDecode[] = | 73 const char kDisableAcceleratedVideoDecode[] = |
69 "disable-accelerated-video-decode"; | 74 "disable-accelerated-video-decode"; |
70 | 75 |
71 // Disable limits on the number of backing stores. Can prevent blinking for | 76 // Disable limits on the number of backing stores. Can prevent blinking for |
72 // users with many windows/tabs and lots of memory. | 77 // users with many windows/tabs and lots of memory. |
73 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 78 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
74 | 79 |
75 // Disable one or more Blink runtime-enabled features. | 80 // Disable one or more Blink runtime-enabled features. |
76 // Use names from RuntimeEnabledFeatures.in, separated by commas. | 81 // Use names from RuntimeEnabledFeatures.in, separated by commas. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 276 |
272 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) | 277 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) |
273 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; | 278 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; |
274 | 279 |
275 // Disable partially decoding jpeg images using the GPU. | 280 // Disable partially decoding jpeg images using the GPU. |
276 // At least YUV decoding will be accelerated when not using this flag. | 281 // At least YUV decoding will be accelerated when not using this flag. |
277 // Has no effect unless GPU rasterization is enabled. | 282 // Has no effect unless GPU rasterization is enabled. |
278 const char kDisableAcceleratedJpegDecoding[] = | 283 const char kDisableAcceleratedJpegDecoding[] = |
279 "disable-accelerated-jpeg-decoding"; | 284 "disable-accelerated-jpeg-decoding"; |
280 | 285 |
281 // Enable hardware acceleration of mjpeg decode for captured frame, where | |
282 // available. | |
283 const char kEnableAcceleratedMjpegDecode[] = "enable-accelerated-mjpeg-decode"; | |
284 | |
285 // Enable bleeding-edge code to make Chrome draw content faster. The changes | 286 // Enable bleeding-edge code to make Chrome draw content faster. The changes |
286 // behind this path are very likely to break lots of content. | 287 // behind this path are very likely to break lots of content. |
287 // ** DO NOT use this flag unless you know what you are doing. ** | 288 // ** DO NOT use this flag unless you know what you are doing. ** |
288 const char kEnableBleedingEdgeRenderingFastPaths[] = | 289 const char kEnableBleedingEdgeRenderingFastPaths[] = |
289 "enable-bleeding-edge-rendering-fast-paths"; | 290 "enable-bleeding-edge-rendering-fast-paths"; |
290 | 291 |
291 // Enables new cc/animation system (Project Heaviside). crbug.com/394772 | 292 // Enables new cc/animation system (Project Heaviside). crbug.com/394772 |
292 const char kEnableCompositorAnimationTimelines[] = | 293 const char kEnableCompositorAnimationTimelines[] = |
293 "enable-compositor-animation-timelines"; | 294 "enable-compositor-animation-timelines"; |
294 | 295 |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 1008 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
1008 | 1009 |
1009 // Enables the exporting of the tracing events to ETW. This is only supported on | 1010 // Enables the exporting of the tracing events to ETW. This is only supported on |
1010 // Windows Vista and later. | 1011 // Windows Vista and later. |
1011 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 1012 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
1012 #endif | 1013 #endif |
1013 | 1014 |
1014 // Don't dump stuff here, follow the same order as the header. | 1015 // Don't dump stuff here, follow the same order as the header. |
1015 | 1016 |
1016 } // namespace switches | 1017 } // namespace switches |
OLD | NEW |