Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: content/public/common/content_switches.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: cleanup Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "media/media_features.h" 7 #include "media/media_features.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const char kDisableGpuMemoryBufferVideoFrames[] = 163 const char kDisableGpuMemoryBufferVideoFrames[] =
164 "disable-gpu-memory-buffer-video-frames"; 164 "disable-gpu-memory-buffer-video-frames";
165 165
166 // Disable the limit on the number of times the GPU process may be restarted. 166 // Disable the limit on the number of times the GPU process may be restarted.
167 // For tests and platforms where software fallback is disabled. 167 // For tests and platforms where software fallback is disabled.
168 const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; 168 const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit";
169 169
170 // Disable async GL worker context. Overrides kEnableGpuAsyncWorkerContext. 170 // Disable async GL worker context. Overrides kEnableGpuAsyncWorkerContext.
171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context"; 171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context";
172 172
173 // Disable GPU rasterization, i.e. rasterize on the CPU only.
174 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
175 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
176
177 // When using CPU rasterizing disable low resolution tiling. This uses 173 // When using CPU rasterizing disable low resolution tiling. This uses
178 // less power, particularly during animations, but more white may be seen 174 // less power, particularly during animations, but more white may be seen
179 // during fast scrolling especially on slower devices. 175 // during fast scrolling especially on slower devices.
180 const char kDisableLowResTiling[] = "disable-low-res-tiling"; 176 const char kDisableLowResTiling[] = "disable-low-res-tiling";
181 177
182 // Disable the GPU process sandbox. 178 // Disable the GPU process sandbox.
183 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; 179 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
184 180
185 // Disable in-process stack traces. 181 // Disable in-process stack traces.
186 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces"; 182 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces";
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context"; 398 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context";
403 399
404 // Specify that all compositor resources should be backed by GPU memory buffers. 400 // Specify that all compositor resources should be backed by GPU memory buffers.
405 const char kEnableGpuMemoryBufferCompositorResources[] = 401 const char kEnableGpuMemoryBufferCompositorResources[] =
406 "enable-gpu-memory-buffer-compositor-resources"; 402 "enable-gpu-memory-buffer-compositor-resources";
407 403
408 // Enable GpuMemoryBuffer backed VideoFrames. 404 // Enable GpuMemoryBuffer backed VideoFrames.
409 const char kEnableGpuMemoryBufferVideoFrames[] = 405 const char kEnableGpuMemoryBufferVideoFrames[] =
410 "enable-gpu-memory-buffer-video-frames"; 406 "enable-gpu-memory-buffer-video-frames";
411 407
412 // Allow heuristics to determine when a layer tile should be drawn with the
413 // Skia GPU backend. Only valid with GPU accelerated compositing +
414 // impl-side painting.
415 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
416
417 // When using CPU rasterizing generate low resolution tiling. Low res 408 // When using CPU rasterizing generate low resolution tiling. Low res
418 // tiles may be displayed during fast scrolls especially on slower devices. 409 // tiles may be displayed during fast scrolls especially on slower devices.
419 const char kEnableLowResTiling[] = "enable-low-res-tiling"; 410 const char kEnableLowResTiling[] = "enable-low-res-tiling";
420 411
421 // Force logging to be enabled. Logging is disabled by default in release 412 // Force logging to be enabled. Logging is disabled by default in release
422 // builds. 413 // builds.
423 const char kEnableLogging[] = "enable-logging"; 414 const char kEnableLogging[] = "enable-logging";
424 415
425 // Enables the network information API. 416 // Enables the network information API.
426 const char kEnableNetworkInformation[] = "enable-network-information"; 417 const char kEnableNetworkInformation[] = "enable-network-information";
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 586 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
596 587
597 // Don't allow content to arbitrarily append to the back/forward list. 588 // Don't allow content to arbitrarily append to the back/forward list.
598 // The page must prcoess a user gesture before an entry can be added. 589 // The page must prcoess a user gesture before an entry can be added.
599 const char kHistoryEntryRequiresUserGesture[] = 590 const char kHistoryEntryRequiresUserGesture[] =
600 "history-entry-requires-user-gesture"; 591 "history-entry-requires-user-gesture";
601 592
602 // These mappings only apply to the host resolver. 593 // These mappings only apply to the host resolver.
603 const char kHostResolverRules[] = "host-resolver-rules"; 594 const char kHostResolverRules[] = "host-resolver-rules";
604 595
605 // Ignores GPU blacklist.
606 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist";
607
608 // Makes all APIs reflect the layout viewport. 596 // Makes all APIs reflect the layout viewport.
609 const char kInertVisualViewport[] = "inert-visual-viewport"; 597 const char kInertVisualViewport[] = "inert-visual-viewport";
610 598
611 // Run the GPU process as a thread in the browser process. 599 // Run the GPU process as a thread in the browser process.
612 const char kInProcessGPU[] = "in-process-gpu"; 600 const char kInProcessGPU[] = "in-process-gpu";
613 601
614 // Overrides the timeout, in seconds, that a child process waits for a 602 // Overrides the timeout, in seconds, that a child process waits for a
615 // connection from the browser before killing itself. 603 // connection from the browser before killing itself.
616 const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; 604 const char kIPCConnectionTimeout[] = "ipc-connection-timeout";
617 605
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 // the given directory. Used primarily to gather samples for IPC fuzzing. 1083 // the given directory. Used primarily to gather samples for IPC fuzzing.
1096 const char kIpcDumpDirectory[] = "ipc-dump-directory"; 1084 const char kIpcDumpDirectory[] = "ipc-dump-directory";
1097 1085
1098 // Specifies the testcase used by the IPC fuzzer. 1086 // Specifies the testcase used by the IPC fuzzer.
1099 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; 1087 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1100 #endif 1088 #endif
1101 1089
1102 // Don't dump stuff here, follow the same order as the header. 1090 // Don't dump stuff here, follow the same order as the header.
1103 1091
1104 } // namespace switches 1092 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698