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

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

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 "disable-gpu-memory-buffer-compositor-resources"; 160 "disable-gpu-memory-buffer-compositor-resources";
161 161
162 // Disable GpuMemoryBuffer backed VideoFrames. 162 // Disable GpuMemoryBuffer backed VideoFrames.
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 // This switch is intended only for tests. 167 // This switch is intended only for tests.
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.
171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context";
172
170 // Disable GPU rasterization, i.e. rasterize on the CPU only. 173 // Disable GPU rasterization, i.e. rasterize on the CPU only.
171 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. 174 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
172 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; 175 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
173 176
174 // When using CPU rasterizing disable low resolution tiling. This uses 177 // When using CPU rasterizing disable low resolution tiling. This uses
175 // less power, particularly during animations, but more white may be seen 178 // less power, particularly during animations, but more white may be seen
176 // during fast scrolling especially on slower devices. 179 // during fast scrolling especially on slower devices.
177 const char kDisableLowResTiling[] = "disable-low-res-tiling"; 180 const char kDisableLowResTiling[] = "disable-low-res-tiling";
178 181
179 // Disable the GPU process sandbox. 182 // Disable the GPU process sandbox.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Enables Web Platform features that are in development. 364 // Enables Web Platform features that are in development.
362 const char kEnableExperimentalWebPlatformFeatures[] = 365 const char kEnableExperimentalWebPlatformFeatures[] =
363 "enable-experimental-web-platform-features"; 366 "enable-experimental-web-platform-features";
364 367
365 // Comma-separated list of feature names to enable. See also kDisableFeatures. 368 // Comma-separated list of feature names to enable. See also kDisableFeatures.
366 const char kEnableFeatures[] = "enable-features"; 369 const char kEnableFeatures[] = "enable-features";
367 370
368 // Enable Web Bluetooth. 371 // Enable Web Bluetooth.
369 const char kEnableWebBluetooth[] = "enable-web-bluetooth"; 372 const char kEnableWebBluetooth[] = "enable-web-bluetooth";
370 373
374 // Makes the GL worker context run asynchronously by using a separate stream.
375 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context";
376
371 // Specify that all compositor resources should be backed by GPU memory buffers. 377 // Specify that all compositor resources should be backed by GPU memory buffers.
372 const char kEnableGpuMemoryBufferCompositorResources[] = 378 const char kEnableGpuMemoryBufferCompositorResources[] =
373 "enable-gpu-memory-buffer-compositor-resources"; 379 "enable-gpu-memory-buffer-compositor-resources";
374 380
375 // Enable GpuMemoryBuffer backed VideoFrames. 381 // Enable GpuMemoryBuffer backed VideoFrames.
376 const char kEnableGpuMemoryBufferVideoFrames[] = 382 const char kEnableGpuMemoryBufferVideoFrames[] =
377 "enable-gpu-memory-buffer-video-frames"; 383 "enable-gpu-memory-buffer-video-frames";
378 384
379 // Allow heuristics to determine when a layer tile should be drawn with the 385 // Allow heuristics to determine when a layer tile should be drawn with the
380 // Skia GPU backend. Only valid with GPU accelerated compositing + 386 // Skia GPU backend. Only valid with GPU accelerated compositing +
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; 1027 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb";
1022 1028
1023 // Enables the exporting of the tracing events to ETW. This is only supported on 1029 // Enables the exporting of the tracing events to ETW. This is only supported on
1024 // Windows Vista and later. 1030 // Windows Vista and later.
1025 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1031 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1026 #endif 1032 #endif
1027 1033
1028 // Don't dump stuff here, follow the same order as the header. 1034 // Don't dump stuff here, follow the same order as the header.
1029 1035
1030 } // namespace switches 1036 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/gpu/compositor_dependencies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698