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

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

Issue 77083002: Add chromium side flag for enabling/disabling layer squashing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const char kDisableAcceleratedFixedRootBackground[] = 84 const char kDisableAcceleratedFixedRootBackground[] =
85 "disable-accelerated-fixed-root-background"; 85 "disable-accelerated-fixed-root-background";
86 86
87 // Disables the hardware acceleration of 3D CSS and animation. 87 // Disables the hardware acceleration of 3D CSS and animation.
88 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; 88 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers";
89 89
90 // Disables accelerated compositing for overflow scroll. 90 // Disables accelerated compositing for overflow scroll.
91 const char kDisableAcceleratedOverflowScroll[] = 91 const char kDisableAcceleratedOverflowScroll[] =
92 "disable-accelerated-overflow-scroll"; 92 "disable-accelerated-overflow-scroll";
93 93
94 // Disables layer squashing.
95 const char kDisableLayerSquashing[] =
96 "disable-layer-squashing";
97
94 // Disable accelerated compositing for scrollable frames. 98 // Disable accelerated compositing for scrollable frames.
95 const char kDisableAcceleratedScrollableFrames[] = 99 const char kDisableAcceleratedScrollableFrames[] =
96 "disable-accelerated-scrollable-frames"; 100 "disable-accelerated-scrollable-frames";
97 101
98 // Disables the hardware acceleration of plugins. 102 // Disables the hardware acceleration of plugins.
99 const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins"; 103 const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins";
100 104
101 // Disables GPU accelerated video display. 105 // Disables GPU accelerated video display.
102 const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; 106 const char kDisableAcceleratedVideo[] = "disable-accelerated-video";
103 107
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // Enables accelerated compositing for backgrounds of root layers with 343 // Enables accelerated compositing for backgrounds of root layers with
340 // background-attachment: fixed. Requires kForceCompositingMode. 344 // background-attachment: fixed. Requires kForceCompositingMode.
341 const char kEnableAcceleratedFixedRootBackground[] = 345 const char kEnableAcceleratedFixedRootBackground[] =
342 "enable-accelerated-fixed-root-background"; 346 "enable-accelerated-fixed-root-background";
343 347
344 // Enables accelerated compositing for overflow scroll. Promotes eligible 348 // Enables accelerated compositing for overflow scroll. Promotes eligible
345 // overflow:scroll elements to layers to enable accelerated scrolling for them. 349 // overflow:scroll elements to layers to enable accelerated scrolling for them.
346 const char kEnableAcceleratedOverflowScroll[] = 350 const char kEnableAcceleratedOverflowScroll[] =
347 "enable-accelerated-overflow-scroll"; 351 "enable-accelerated-overflow-scroll";
348 352
353 // Enables experimental feature that maps multiple RenderLayers to
354 // one composited layer to avoid pathological layer counts.
355 const char kEnableLayerSquashing[] =
356 "enable-layer-squashing";
357
349 // Enables accelerated compositing for scrollable frames for accelerated 358 // Enables accelerated compositing for scrollable frames for accelerated
350 // scrolling for them. Requires kForceCompositingMode. 359 // scrolling for them. Requires kForceCompositingMode.
351 const char kEnableAcceleratedScrollableFrames[] = 360 const char kEnableAcceleratedScrollableFrames[] =
352 "enable-accelerated-scrollable-frames"; 361 "enable-accelerated-scrollable-frames";
353 362
354 // Turns on extremely verbose logging of accessibility events. 363 // Turns on extremely verbose logging of accessibility events.
355 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; 364 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging";
356 365
357 // Use a BeginImplFrame signal from browser to renderer to schedule rendering. 366 // Use a BeginImplFrame signal from browser to renderer to schedule rendering.
358 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; 367 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 #endif 1017 #endif
1009 1018
1010 #if defined(OS_POSIX) 1019 #if defined(OS_POSIX)
1011 // Causes the child processes to cleanly exit via calling exit(). 1020 // Causes the child processes to cleanly exit via calling exit().
1012 const char kChildCleanExit[] = "child-clean-exit"; 1021 const char kChildCleanExit[] = "child-clean-exit";
1013 #endif 1022 #endif
1014 1023
1015 // Don't dump stuff here, follow the same order as the header. 1024 // Don't dump stuff here, follow the same order as the header.
1016 1025
1017 } // namespace switches 1026 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698