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

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

Issue 485663002: Revert of Remove the acclerated overflow scroll and fixed root background flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. 75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
76 // This is controlled by policy and is kept separate from the other 76 // This is controlled by policy and is kept separate from the other
77 // enable/disable switches to avoid accidentally regressing the policy 77 // enable/disable switches to avoid accidentally regressing the policy
78 // support for controlling access to these APIs. 78 // support for controlling access to these APIs.
79 const char kDisable3DAPIs[] = "disable-3d-apis"; 79 const char kDisable3DAPIs[] = "disable-3d-apis";
80 80
81 // Disable gpu-accelerated 2d canvas. 81 // Disable gpu-accelerated 2d canvas.
82 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; 82 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";
83 83
84 // Disables accelerated compositing for backgrounds of root layers with
85 // background-attachment: fixed.
86 const char kDisableAcceleratedFixedRootBackground[] =
87 "disable-accelerated-fixed-root-background";
88
89 // Disables accelerated compositing for overflow scroll.
90 const char kDisableAcceleratedOverflowScroll[] =
91 "disable-accelerated-overflow-scroll";
92
84 // Disables layer squashing. 93 // Disables layer squashing.
85 const char kDisableLayerSquashing[] = 94 const char kDisableLayerSquashing[] =
86 "disable-layer-squashing"; 95 "disable-layer-squashing";
87 96
88 // Disables hardware acceleration of video decode, where available. 97 // Disables hardware acceleration of video decode, where available.
89 const char kDisableAcceleratedVideoDecode[] = 98 const char kDisableAcceleratedVideoDecode[] =
90 "disable-accelerated-video-decode"; 99 "disable-accelerated-video-decode";
91 100
92 // Disable the ApplicationCache. 101 // Disable the ApplicationCache.
93 const char kDisableApplicationCache[] = "disable-application-cache"; 102 const char kDisableApplicationCache[] = "disable-application-cache";
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 276
268 // Enable bleeding-edge code to make Chrome draw content faster. The changes 277 // Enable bleeding-edge code to make Chrome draw content faster. The changes
269 // behind this path are very likely to break lots of content. 278 // behind this path are very likely to break lots of content.
270 // ** DO NOT use this flag unless you know what you are doing. ** 279 // ** DO NOT use this flag unless you know what you are doing. **
271 const char kEnableBleedingEdgeRenderingFastPaths[] = 280 const char kEnableBleedingEdgeRenderingFastPaths[] =
272 "enable-bleeding-edge-rendering-fast-paths"; 281 "enable-bleeding-edge-rendering-fast-paths";
273 282
274 // Disable deferred image filters. 283 // Disable deferred image filters.
275 const char kDisableDeferredFilters[] = "disable-deferred-filters"; 284 const char kDisableDeferredFilters[] = "disable-deferred-filters";
276 285
286 // Enables accelerated compositing for backgrounds of root layers with
287 // background-attachment: fixed.
288 const char kEnableAcceleratedFixedRootBackground[] =
289 "enable-accelerated-fixed-root-background";
290
291 // Enables accelerated compositing for overflow scroll. Promotes eligible
292 // overflow:scroll elements to layers to enable accelerated scrolling for them.
293 const char kEnableAcceleratedOverflowScroll[] =
294 "enable-accelerated-overflow-scroll";
295
277 // Enables LCD text. 296 // Enables LCD text.
278 const char kEnableLCDText[] = "enable-lcd-text"; 297 const char kEnableLCDText[] = "enable-lcd-text";
279 298
280 // Enables using signed distance fields when rendering text. 299 // Enables using signed distance fields when rendering text.
281 // Only valid if GPU rasterization is enabled as well. 300 // Only valid if GPU rasterization is enabled as well.
282 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; 301 const char kEnableDistanceFieldText[] = "enable-distance-field-text";
283 302
284 // Enables experimental feature that maps multiple RenderLayers to 303 // Enables experimental feature that maps multiple RenderLayers to
285 // one composited layer to avoid pathological layer counts. 304 // one composited layer to avoid pathological layer counts.
286 const char kEnableLayerSquashing[] = 305 const char kEnableLayerSquashing[] =
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 // Enable the Win32K process mitigation policy for renderer processes which 927 // Enable the Win32K process mitigation policy for renderer processes which
909 // prevents them from invoking user32 and gdi32 system calls which enter 928 // prevents them from invoking user32 and gdi32 system calls which enter
910 // the kernel. This is only supported on Windows 8 and beyond. 929 // the kernel. This is only supported on Windows 8 and beyond.
911 const char kEnableWin32kRendererLockDown[] 930 const char kEnableWin32kRendererLockDown[]
912 = "enable_win32k_renderer_lockdown"; 931 = "enable_win32k_renderer_lockdown";
913 #endif 932 #endif
914 933
915 // Don't dump stuff here, follow the same order as the header. 934 // Don't dump stuff here, follow the same order as the header.
916 935
917 } // namespace switches 936 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698