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

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

Issue 196473007: Add --disable-low-res-tiling. Disable low res tiling to save power. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve merge conflicts Created 6 years, 9 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 | Annotate | Revision Log
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 "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 "disable-gpu-process-crash-limit"; 195 "disable-gpu-process-crash-limit";
196 196
197 // Do not launch the GPU process shortly after browser process launch. Instead 197 // Do not launch the GPU process shortly after browser process launch. Instead
198 // launch it when it is first needed. 198 // launch it when it is first needed.
199 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; 199 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch";
200 200
201 // Disable GPU rasterization, i.e. rasterize on the CPU only. 201 // Disable GPU rasterization, i.e. rasterize on the CPU only.
202 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. 202 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
203 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; 203 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
204 204
205 // When using CPU rasterizing disable low resolution tiling. This uses
206 // less power, particularly during animations, but more white may be seen
207 // during fast scrolling especially on slower devices.
208 const char kDisableLowResTiling[] = "disable-low-res-tiling";
209
205 // Disable the GPU process sandbox. 210 // Disable the GPU process sandbox.
206 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; 211 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
207 212
208 // Disable the thread that crashes the GPU process if it stops responding to 213 // Disable the thread that crashes the GPU process if it stops responding to
209 // messages. 214 // messages.
210 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; 215 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
211 216
212 // Suppresses hang monitor dialogs in renderer processes. This may allow slow 217 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
213 // unload handlers on a page to prevent the tab from closing, but the Task 218 // unload handlers on a page to prevent the tab from closing, but the Task
214 // Manager can be used to terminate the offending process in this case. 219 // Manager can be used to terminate the offending process in this case.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; 448 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight";
444 449
445 // Enables TRACE for GL calls in the renderer. 450 // Enables TRACE for GL calls in the renderer.
446 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; 451 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
447 452
448 // Allow heuristics to determine when a layer tile should be drawn with the 453 // Allow heuristics to determine when a layer tile should be drawn with the
449 // Skia GPU backend. Only valid with GPU accelerated compositing + 454 // Skia GPU backend. Only valid with GPU accelerated compositing +
450 // impl-side painting. 455 // impl-side painting.
451 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; 456 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
452 457
458 // When using CPU rasterizing generate low resolution tiling. Low res
459 // tiles may be displayed during fast scrolls especially on slower devices.
460 const char kEnableLowResTiling[] = "enable-low-res-tiling";
461
453 // See comment for kEnableCompositingForFixedPosition. 462 // See comment for kEnableCompositingForFixedPosition.
454 const char kEnableHighDpiCompositingForFixedPosition[] = 463 const char kEnableHighDpiCompositingForFixedPosition[] =
455 "enable-high-dpi-fixed-position-compositing"; 464 "enable-high-dpi-fixed-position-compositing";
456 465
457 #if defined(OS_WIN) 466 #if defined(OS_WIN)
458 // Disable the Legacy Window which corresponds to the size of the WebContents. 467 // Disable the Legacy Window which corresponds to the size of the WebContents.
459 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 468 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
460 469
461 // Enables the DirectWrite font rendering system on windows. 470 // Enables the DirectWrite font rendering system on windows.
462 const char kEnableDirectWrite[] = "enable-direct-write"; 471 const char kEnableDirectWrite[] = "enable-direct-write";
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 #endif 1062 #endif
1054 1063
1055 #if defined(OS_POSIX) 1064 #if defined(OS_POSIX)
1056 // Causes the child processes to cleanly exit via calling exit(). 1065 // Causes the child processes to cleanly exit via calling exit().
1057 const char kChildCleanExit[] = "child-clean-exit"; 1066 const char kChildCleanExit[] = "child-clean-exit";
1058 #endif 1067 #endif
1059 1068
1060 // Don't dump stuff here, follow the same order as the header. 1069 // Don't dump stuff here, follow the same order as the header.
1061 1070
1062 } // namespace switches 1071 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698